From 2369f9681b593275f3d851a9eb134c8cff2fb3c2 Mon Sep 17 00:00:00 2001 From: Marco De Donno Date: Mon, 11 Jun 2018 15:51:36 +0200 Subject: [PATCH] Add the branch name to the displayed version --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 44ebd61..ba5d616 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,7 +16,7 @@ before_script: build_web: stage: build script: - - echo "__version__ = '$CI_COMMIT_SHA - $(date '+%F - %H:%M:%S %Z')'" > ./web/API/version.py + - echo "__version__ = '$CI_COMMIT_REF_NAME $CI_COMMIT_SHA - $(date '+%F - %H:%M:%S %Z')'" > ./web/API/version.py - docker build -t webnist_web:$CI_PIPELINE_ID ./web python: -- GitLab