test label

This commit is contained in:
Julien Cabillot
2019-02-22 22:10:53 +00:00
parent c58f301c91
commit 9423cf6f23
2 changed files with 31 additions and 4 deletions
+10 -2
View File
@@ -9,7 +9,11 @@ before_script:
build-master:
stage: "build"
script:
- "docker build --pull -t \"$CI_REGISTRY_IMAGE\" ."
- "docker build --pull \
--build-arg VCS_REF=`git rev-parse HEAD` \
--build-arg BUILD_DATE=`date -u +”%Y-%m-%dT%H:%M:%SZ”` \
--build-arg VERSION=`git describe --tags --exact-match || git rev-parse HEAD` \
-t \"$CI_REGISTRY_IMAGE\" ."
- "docker push \"$CI_REGISTRY_IMAGE\""
only:
- "master"
@@ -17,7 +21,11 @@ build-master:
build:
stage: "build"
script:
- "docker build --pull -t \"$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG\" ."
- "docker build --pull \
--build-arg VCS_REF=`git rev-parse HEAD` \
--build-arg BUILD_DATE=`date -u +”%Y-%m-%dT%H:%M:%SZ”` \
--build-arg VERSION=`git describe --tags --exact-match || git rev-parse HEAD` \
-t \"$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG\" ."
- "docker push \"$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG\""
except:
- "master"