diff --git a/Dockerfile b/Dockerfile index 2fb471e..d8c0e91 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" diff --git a/src/options.js b/src/options.js index a3548ec..bff04f6 100644 --- a/src/options.js +++ b/src/options.js @@ -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,