From 5af3d371e3c894cdda23bcf821d09bb231a206c9 Mon Sep 17 00:00:00 2001 From: jonasled <jonas@jonasled.de> Date: Mon, 11 Nov 2019 15:13:57 +0100 Subject: [PATCH] fixing git push --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e62888d..2656da1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,6 +29,10 @@ 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" + - git config --global user.name "build" + - git config --global user.email "noreply@jonasled.de" + - git tag -a $version -m "$version" #add a tag with the current version + - git push --tags -o ci.skip #Push the tag to the repo ci.skip means don't build the image again. - 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 -- GitLab