-git tag -a $version -m "$version"#add a tag with the current version
-git push --tags -o ci.skip ssh://git@gitlab.jonasled.de:2222/jonasled/url_shorter_docker#Push the tag to the repo ci.skip means don't build the image again. I've configured an ssh key for the runner user,so it can push via ssh.
-cp VERSION /app
-cp VERSION /app/
-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