From 35993bad94a627d25041881a05ae184c7fc3f828 Mon Sep 17 00:00:00 2001 From: jonasled <jonas@jonasled.de> Date: Mon, 11 Nov 2019 09:54:25 +0100 Subject: [PATCH] fixed version variable --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 747e7e4..0d57a84 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,7 +27,7 @@ build-release: #This will be executed if you push on master, it makes a new rele only: - master script: - - export version='cat VERSION' + - export version=`cat VERSION` - echo "building branch $CI_COMMIT_REF_NAME, Version $version" - 'curl -X POSRT --silent --show-error --fail --header "PRIVATE-TOKEN: ${GITLAB_TOKEN}"https://gitlab.jonasled.de/api/v4/projects/${CI_PROJECT_ID}/repository/tags?tag_name=$version&ref=${CI_COMMIT_SHS}' #Tag the current commit with the version. - sudo docker image prune -f #Delete old unused images -- GitLab