fix: use org.opencontainers.image labels
This commit is contained in:
parent
ea70032927
commit
e33188828c
|
|
@ -177,11 +177,12 @@ ARG GIT_COMMIT_HASH
|
||||||
ARG GIT_COMMIT_DATE
|
ARG GIT_COMMIT_DATE
|
||||||
ARG GIT_REPO_URL
|
ARG GIT_REPO_URL
|
||||||
|
|
||||||
|
# https://github.com/opencontainers/image-spec/blob/main/annotations.md
|
||||||
LABEL \
|
LABEL \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.opencontainers.image.source=$GIT_REPO_URL \
|
||||||
org.label-schema.build-date=$BUILD_DATE \
|
org.opencontainers.image.created=$BUILD_DATE \
|
||||||
org.label-schema.vcs-ref=$GIT_COMMIT_HASH \
|
org.opencontainers.image.revision=$GIT_COMMIT_HASH \
|
||||||
org.label-schema.vcs-url=$GIT_REPO_URL
|
org.opencontainers.image.vision=$GIT_COMMIT_HASH
|
||||||
|
|
||||||
# Default configuration: can be overridden at the docker command line
|
# Default configuration: can be overridden at the docker command line
|
||||||
ENV \
|
ENV \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue