Skip to content

Commit 69111ff

Browse files
committed
ci: Add docker labels
1 parent 8fe70bb commit 69111ff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build-containers.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ jobs:
5656
docker buildx build --platform linux/${{ matrix.arch }} \
5757
-f Dockerfile.dev \
5858
-t ghcr.io/gitroomhq/postiz-app:${{ env.CONTAINERVER }}-${{ matrix.arch }} \
59+
--label "org.opencontainers.image.version=${{ env.CONTAINERVER }}-${{ matrix.arch }}" \
60+
--label "org.opencontainers.image.revision=${{ github.sha }}" \
61+
--label "org.opencontainers.image.source=https://github.com/${{ github.repository }}/" \
5962
--provenance=false --sbom=false \
6063
--output "type=registry,name=ghcr.io/gitroomhq/postiz-app:${{ env.CONTAINERVER }}-${{ matrix.arch }}" .
6164

0 commit comments

Comments
 (0)