1
0
Fork 0

Add VCS build labels
the build was successful Details

pull/2/head
Ambrose Chua 2018-09-27 00:02:26 +08:00
parent e74d2d841a
commit 3466b80204
2 changed files with 5 additions and 3 deletions

View File

@ -3,6 +3,8 @@ FROM node:10-alpine as build
# args
ARG version="0.1.0"
ARG repo="github.com/productionwentdown/dri"
ENV VUE_APP_VERSION=${version}
ENV VUE_APP_SOURCE_LINK="https://${repo}"
# dependencies
RUN apk add --no-cache git
@ -21,7 +23,7 @@ FROM alpine:3.8
ARG version
# labels
LABEL org.label-schema.vcs-url="https://github.com/productionwentdown/email-collector"
LABEL org.label-schema.vcs-url="https://github.com/productionwentdown/dri"
LABEL org.label-schema.version=${version}
LABEL org.label-schema.schema-version="1.0"

View File

@ -1,5 +1,5 @@
const version = process.env.VERSION || '[master]';
const source = process.env.SOURCE_LINK || 'https://github.com/productionwentdown/dri';
const version = process.env.VUE_APP_VERSION || '[master]';
const source = process.env.VUE_APP_SOURCE_LINK || 'https://github.com/productionwentdown/dri';
const defaultConfig = {
merged: false,