From 7383a84c75b692880a1d62954ae1fb7e253104c6 Mon Sep 17 00:00:00 2001 From: David Blyth Date: Tue, 5 Dec 2017 15:32:01 -0600 Subject: [PATCH] Gitlab CI: improved workflow Runner now creates test tags for non-master branches. For the master branch, the image is assigned the "latest" tag. --- .gitlab-ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1030f3b..0c9907a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,4 +3,12 @@ before_script: build_image: script: - - docker build -t argonneeic/base:testing --build-arg BUILD_THREADS=20 . \ No newline at end of file + - docker build -t argonneeic/base:$CI_COMMIT_REF_NAME --build-arg BUILD_THREADS=20 . + only: + - branches + +deploy_latest: + script: + - docker build -t argonneeic/base --build-arg BUILD_THREADS=20 . + only: + - master -- GitLab