Add git metadata to Docker image

This commit is contained in:
Julia van der Kris 2024-10-05 18:00:50 +02:00
parent a2c3c9010a
commit 0a5931b533
No known key found for this signature in database
GPG Key ID: DCD4F68580A4349B

View File

@ -19,6 +19,12 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ env.OWNER_LOWERCASE }}/quartz
- name: Login to DockerHub
uses: docker/login-action@v3
with:
@ -30,4 +36,5 @@ jobs:
uses: docker/build-push-action@v5
with:
push: true
tags: ghcr.io/${{ env.OWNER_LOWERCASE }}/quartz:latest
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}