Skip to content
Snippets Groups Projects
Commit 5af3d371 authored by Jonas Leder's avatar Jonas Leder
Browse files

fixing git push

parent cad736b4
No related branches found
No related tags found
No related merge requests found
Pipeline #85 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment