Skip to content

Commit a14b240

Browse files
committed
Put git metadata into image metadata
1 parent f1c329b commit a14b240

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/container.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,17 @@ jobs:
2525
username: ${{ github.actor }}
2626
password: ${{ secrets.GITHUB_TOKEN }}
2727

28+
- name: Extract Docker metadata
29+
id: meta
30+
uses: docker/metadata-action@v5
31+
with:
32+
images: ghcr.io/${{ github.repository_owner }}/mutants
33+
2834
- name: Build and push container image
2935
uses: docker/build-push-action@v6
3036
with:
3137
context: .
3238
push: true
3339
platforms: linux/amd64,linux/arm64
34-
tags: ghcr.io/${{ github.repository_owner }}/mutants:latest
40+
tags: ${{ steps.meta.outputs.tags }}
41+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)