Maint: rename Docker build arguments

master
Quentin McGaw (desktop) 3 years ago
parent 0caae36787
commit 9698606fe6

@ -26,8 +26,8 @@ jobs:
docker buildx build \ docker buildx build \
--progress plain \ --progress plain \
--platform=linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6 \ --platform=linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6 \
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \ --build-arg CREATED=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
--build-arg VCS_REF=`git rev-parse --short HEAD` \ --build-arg COMMIT=`git rev-parse --short HEAD` \
--build-arg VERSION=latest \ --build-arg VERSION=latest \
-t qmcgaw/stackedit:latest \ -t qmcgaw/stackedit:latest \
--push \ --push \

@ -26,8 +26,8 @@ jobs:
docker buildx build \ docker buildx build \
--progress plain \ --progress plain \
--platform=linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6 \ --platform=linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6 \
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \ --build-arg CREATED=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
--build-arg VCS_REF=`git rev-parse --short HEAD` \ --build-arg COMMIT=`git rev-parse --short HEAD` \
--build-arg VERSION=${GITHUB_REF##*/} \ --build-arg VERSION=${GITHUB_REF##*/} \
-t qmcgaw/stackedit:${GITHUB_REF##*/} \ -t qmcgaw/stackedit:${GITHUB_REF##*/} \
--push \ --push \

@ -27,14 +27,14 @@ RUN sed -i "s/assetsPublicPath: '\/',/assetsPublicPath: '.\/',/g" config/index.j
RUN npm run build RUN npm run build
FROM scratch AS final FROM scratch AS final
ARG BUILD_DATE ARG CREATED
ARG VCS_REF ARG COMMIT
ARG STACKEDIT_VERSION ARG STACKEDIT_VERSION
LABEL \ LABEL \
org.opencontainers.image.authors="quentin.mcgaw@gmail.com" \ org.opencontainers.image.authors="quentin.mcgaw@gmail.com" \
org.opencontainers.image.created=$BUILD_DATE \ org.opencontainers.image.created=$CREATED \
org.opencontainers.image.version=$STACKEDIT_VERSION \ org.opencontainers.image.version=$STACKEDIT_VERSION \
org.opencontainers.image.revision=$VCS_REF \ org.opencontainers.image.revision=$COMMIT \
org.opencontainers.image.url="https://github.com/qdm12/stackedit-docker" \ org.opencontainers.image.url="https://github.com/qdm12/stackedit-docker" \
org.opencontainers.image.documentation="https://github.com/qdm12/stackedit-docker/blob/master/README.md" \ org.opencontainers.image.documentation="https://github.com/qdm12/stackedit-docker/blob/master/README.md" \
org.opencontainers.image.source="https://github.com/qdm12/stackedit-docker" \ org.opencontainers.image.source="https://github.com/qdm12/stackedit-docker" \

Loading…
Cancel
Save