Introduce "common.label-and-env"

This will simply the removal of deprecated "org.label-schema" annotation [1]
and the introduction of open containers ones [2]

[1] http://label-schema.org/rc1/
[2] https://github.com/opencontainers/image-spec/blob/master/annotations.md
This commit is contained in:
Jean-Christophe Fillion-Robin
2020-05-06 20:21:14 -04:00
committed by Jonas Vautherin
parent 1fb2785377
commit 68b4549a50
28 changed files with 114 additions and 339 deletions

View File

@ -66,16 +66,4 @@ RUN chmod -R 777 /emsdk/upstream/emscripten/cache
ENV CMAKE_TOOLCHAIN_FILE /emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
# Build-time metadata as defined at http://label-schema.org
ARG BUILD_DATE
ARG IMAGE
ARG VERSION=latest
ARG VCS_REF
ARG VCS_URL
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name=$IMAGE \
org.label-schema.version=$VERSION \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url=$VCS_URL \
org.label-schema.schema-version="1.0"
ENV DEFAULT_DOCKCROSS_IMAGE ${IMAGE}:${VERSION}
#include "common.label-and-env"