Skip to content

Commit 705af4b

Browse files
author
Norkz
committed
✨ (docker): add versioning to Docker image tags and labels
Enhance the Docker build and publish workflow by including the package version in the image tags and labels. This change improves traceability and version management for the Docker images.
1 parent a7af66e commit 705af4b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/docker-build-publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
${{ env.DH_IMAGE }}
4545
ghcr.io/${{ env.GH_IMAGE }}
4646
tags: |
47+
${{ steps.package-version.outputs.version }}
4748
type=semver,event=tag,pattern={{version}}
4849
labels: |
4950
maintainer=NorkzYT
@@ -52,6 +53,7 @@ jobs:
5253
org.opencontainers.image.documentation=https://github.com/NorkzYT/BackupOnePass
5354
org.opencontainers.image.authors=Richard Lora
5455
org.opencontainers.image.licenses=GPL-3.0
56+
org.opencontainers.image.version=${{ steps.package-version.outputs.version }}
5557
5658
- name: 🔧 Set up QEMU
5759
uses: docker/setup-qemu-action@v3

0 commit comments

Comments
 (0)