diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0d57a843e78b4e7a45a00d5c76b65b121b8881f0..3f6854e7bb94b87c50ff59bd1c764e29dff03ac6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,7 +29,7 @@ build-release: #This will be executed if you push on master, it makes a new rele script: - 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. + - '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 - sudo docker pull python:3 - sudo docker build -t gitlab.jonasled.de/jonasled/url_shorter_docker . #Build the image with the name already set to push