Update .gitlab-ci.yml

This commit is contained in:
Julien Cabillot 2019-02-22 22:21:32 +00:00
parent 9423cf6f23
commit d87ed9d1db

View File

@ -10,9 +10,9 @@ build-master:
stage: "build"
script:
- "docker build --pull \
--build-arg VCS_REF=`git rev-parse HEAD` \
--build-arg VCS_REF=\"${CI_COMMIT_SHA}\" \
--build-arg BUILD_DATE=`date -u +”%Y-%m-%dT%H:%M:%SZ”` \
--build-arg VERSION=`git describe --tags --exact-match || git rev-parse HEAD` \
--build-arg VERSION=\"NotAvailable\" \
-t \"$CI_REGISTRY_IMAGE\" ."
- "docker push \"$CI_REGISTRY_IMAGE\""
only:
@ -22,9 +22,9 @@ build:
stage: "build"
script:
- "docker build --pull \
--build-arg VCS_REF=`git rev-parse HEAD` \
--build-arg VCS_REF=\"${CI_COMMIT_SHA}\" \
--build-arg BUILD_DATE=`date -u +”%Y-%m-%dT%H:%M:%SZ”` \
--build-arg VERSION=`git describe --tags --exact-match || git rev-parse HEAD` \
--build-arg VERSION=\"NotAvailable\" \
-t \"$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG\" ."
- "docker push \"$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG\""
except: