summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-07-21 02:34:52 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2019-07-21 03:19:19 +0200
commit4582f808f05205e7a32ecd6ae42dee00295872f1 (patch)
treea4195c28f49a01f594a8c6b1ebfbac109375096f /.gitlab-ci.yml
parentb9cb7d57fdea7246f536204fd0f267380434aa09 (diff)
Added version to credits and metrics page
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index db26ce4c..b9bb8654 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -38,7 +38,9 @@ build-image:
<<: *docker_definition
stage: build
script:
- - docker build --pull --build-arg NGINX_IMAGE="${TEST_IMAGE}-nginx" -t "${TEST_IMAGE}" -f contrib/Dockerfile .
+ - apk -q add git
+ - VERSION="$(git describe --abbrev=0 --tags)-${CI_COMMIT_REF_NAME}+${CI_PIPELINE_ID}.${CI_COMMIT_SHORT_SHA}"
+ - docker build --pull --build-arg NGINX_IMAGE="${TEST_IMAGE}-nginx" --build-arg VERSION="${VERSION}" -t "${TEST_IMAGE}" -f contrib/Dockerfile .
- docker push "${TEST_IMAGE}"
test: