diff options
author | msquare <msquare@notrademark.de> | 2019-07-21 13:38:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-21 13:38:05 +0200 |
commit | 1e16f4c47ec15ffea41e1fa612d205b8db2a16d1 (patch) | |
tree | 0d436535bd7094a201e52036acd406f00bfc620f /.gitlab-ci.yml | |
parent | 3d8476efd3709806d254b1c41e26e906080e0b39 (diff) | |
parent | 4582f808f05205e7a32ecd6ae42dee00295872f1 (diff) |
Merge pull request #624 from MyIgel/version
Added version to credits and metrics page
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a165c604..7bbf24de 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: |