diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 44ebd61cc9c9c338903f7c59b80cc0e78f1fc85e..ba5d6167e2142abd2c368e7b60c6f6980fdea6dd 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: