Add build_id dockerfile label
This commit is contained in:
parent
96d190d708
commit
bf11584dbd
2 changed files with 6 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ FROM ${BASE_IMAGE}
|
|||
ARG TARGETARCH
|
||||
ARG VERSION
|
||||
ARG COMMIT_SHA
|
||||
ARG BUILD_ID=UNSET
|
||||
|
||||
LABEL org.opencontainers.image.title="NGINX Ingress Controller for Kubernetes"
|
||||
LABEL org.opencontainers.image.documentation="https://kubernetes.github.io/ingress-nginx/"
|
||||
|
|
@ -28,6 +29,8 @@ LABEL org.opencontainers.image.licenses="Apache-2.0"
|
|||
LABEL org.opencontainers.image.version="${VERSION}"
|
||||
LABEL org.opencontainers.image.revision="${COMMIT_SHA}"
|
||||
|
||||
LABEL build_id="${BUILD_ID}"
|
||||
|
||||
WORKDIR /etc/nginx
|
||||
|
||||
RUN apk update \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue