mirror of
https://github.com/juanfont/headscale.git
synced 2026-09-09 18:21:32 +09:00
ci: add source metadata to container images
This commit is contained in:
committed by
Kristoffer Dalby
parent
7b24135b1a
commit
f02a027d91
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user