ci: add source metadata to container images

This commit is contained in:
Michał Wadas
2026-07-29 22:08:04 +02:00
committed by Kristoffer Dalby
parent 7b24135b1a
commit f02a027d91
2 changed files with 12 additions and 0 deletions
+4
View File
@@ -58,6 +58,8 @@ jobs:
run: |
ko build \
--bare \
--image-annotation=org.opencontainers.image.source=https://github.com/juanfont/headscale \
--image-label=org.opencontainers.image.source=https://github.com/juanfont/headscale \
--platform=linux/amd64,linux/arm64 \
--tags=main-${GITHUB_SHA::7},development \
./cmd/headscale
@@ -70,6 +72,8 @@ jobs:
run: |
ko build \
--bare \
--image-annotation=org.opencontainers.image.source=https://github.com/juanfont/headscale \
--image-label=org.opencontainers.image.source=https://github.com/juanfont/headscale \
--platform=linux/amd64,linux/arm64 \
--tags=main-${GITHUB_SHA::7},development \
./cmd/headscale
+8
View File
@@ -102,6 +102,10 @@ kos:
# for tagging and naming the container.
bare: true
base_image: gcr.io/distroless/base-debian13
labels:
org.opencontainers.image.source: https://github.com/juanfont/headscale
annotations:
org.opencontainers.image.source: https://github.com/juanfont/headscale
build: headscale
main: ./cmd/headscale
env:
@@ -131,6 +135,10 @@ kos:
bare: true
base_image: gcr.io/distroless/base-debian13:debug
labels:
org.opencontainers.image.source: https://github.com/juanfont/headscale
annotations:
org.opencontainers.image.source: https://github.com/juanfont/headscale
build: headscale
main: ./cmd/headscale
env: