Skip to content

Commit

Permalink
ci: push Docker image to ouuan/wakapi
Browse files Browse the repository at this point in the history
  • Loading branch information
ouuan committed Sep 9, 2024
1 parent 545186a commit 2ffc88f
Showing 1 changed file with 6 additions and 26 deletions.
32 changes: 6 additions & 26 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Publish Docker Image

on:
push:
branches:
- master
workflow_dispatch:
release:
types:
- published

jobs:
docker-publish:
Expand Down Expand Up @@ -32,32 +32,12 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker Metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/${{ github.repository }}
n1try/wakapi
tags: |
latest
alpine
type=semver,pattern={{major}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{version}}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7
tags: ${{ steps.meta.outputs.tags }}
tags: |
ouuan/wakapi:latest
platforms: linux/amd64

0 comments on commit 2ffc88f

Please sign in to comment.