Skip to content

Commit 5a1839e

Browse files
committed
chore: Update Docker build and publish workflow to use metadata action and latest build-push version
1 parent b633855 commit 5a1839e

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,20 @@ jobs:
2424
username: ${{ github.actor }}
2525
password: ${{ secrets.GITHUB_TOKEN }}
2626

27+
- name: Docker meta
28+
id: meta
29+
uses: docker/metadata-action@v5
30+
with:
31+
images: ghcr.io/${{ github.repository }}
32+
tags: |
33+
type=raw,value=latest
34+
2735
- name: Build and push
28-
uses: docker/build-push-action@v5
36+
uses: docker/build-push-action@v6
2937
with:
3038
context: .
3139
push: true
32-
tags: ghcr.io/${{ github.repository }}:latest
40+
tags: ${{ steps.meta.outputs.tags }}
41+
labels: ${{ steps.meta.outputs.labels }}
3342
cache-from: type=gha
3443
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)