Skip to content
Snippets Groups Projects
Commit 9018d04e authored by jonasled's avatar jonasled
Browse files

cleanup

parent 62e96cb2
No related branches found
No related tags found
No related merge requests found
Pipeline #333 failed
...@@ -14,7 +14,6 @@ build: #This will be executed on every push. It builds an docker image, which is ...@@ -14,7 +14,6 @@ build: #This will be executed on every push. It builds an docker image, which is
- master - master
script: script:
- echo "building for branch $CI_COMMIT_REF_NAME" - echo "building for branch $CI_COMMIT_REF_NAME"
- sudo docker image prune -f #Delete old unused images
- sudo docker pull python:3 - sudo docker pull python:3
- sudo docker build -t gitlab.jonasled.de/jonasled/url_shorter_docker:$CI_COMMIT_REF_NAME . #Build the image with the name already set to push - sudo docker build -t gitlab.jonasled.de/jonasled/url_shorter_docker:$CI_COMMIT_REF_NAME . #Build the image with the name already set to push
- sudo docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY #Login to docker registry, username and password will be filled while executing - sudo docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY #Login to docker registry, username and password will be filled while executing
...@@ -32,7 +31,6 @@ build-release: #This will be executed if you push on master, it makes a new rele ...@@ -32,7 +31,6 @@ build-release: #This will be executed if you push on master, it makes a new rele
- git config --global user.email "noreply@jonasled.de" - git config --global user.email "noreply@jonasled.de"
- git tag -a $version -m "$version" #add a tag with the current version - 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. - 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.
- sudo docker image prune -f #Delete old unused images
- sudo docker pull python:3 - 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 - sudo docker build -t gitlab.jonasled.de/jonasled/url_shorter_docker . #Build the image with the name already set to push
- sudo docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY #Login to docker registry, username and password will be filled while executing - sudo docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY #Login to docker registry, username and password will be filled while executing
......
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