Skip to content

Commit 238270f

Browse files
committed
set labels on the final container image
On-behalf-of: @SAP [email protected]
1 parent 1100047 commit 238270f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,14 @@ FROM --platform=${BUILDPLATFORM} docker.io/golang:1.23.4 AS builder
1616
ARG TARGETOS
1717
ARG TARGETARCH
1818

19-
LABEL org.opencontainers.image.source=https://github.com/kcp-dev/api-syncagent
20-
LABEL org.opencontainers.image.description="A Kubernetes agent to synchronize APIs and their objects between Kubernetes clusters and kcp"
21-
LABEL org.opencontainers.image.licenses=Apache-2.0
22-
2319
WORKDIR /go/src/github.com/kcp-dev/api-syncagent
2420
COPY . .
2521
RUN GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} make clean api-syncagent
2622

2723
FROM gcr.io/distroless/static-debian12:debug
24+
LABEL org.opencontainers.image.source=https://github.com/kcp-dev/api-syncagent
25+
LABEL org.opencontainers.image.description="A Kubernetes agent to synchronize APIs and their objects between Kubernetes clusters and kcp"
26+
LABEL org.opencontainers.image.licenses=Apache-2.0
2827

2928
COPY --from=builder /go/src/github.com/kcp-dev/api-syncagent/_build/api-syncagent /usr/local/bin/api-syncagent
3029

0 commit comments

Comments
 (0)