Skip to content

Commit

Permalink
ci: Set Metadata for docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
atsu1125 committed Oct 23, 2024
1 parent c34d22b commit 23e6244
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Set metadata
uses: docker/metadata-action@v4
id: meta
with:
images: ghcr.io/sakura-tel/milkey
tags: type=semver,pattern={{version}}

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
Expand All @@ -26,4 +33,4 @@ jobs:
with:
context: .
push: true
tags: ghcr.io/sakura-tel/milkey:latest
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit 23e6244

Please sign in to comment.