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

bugfix

parent 62668043
No related branches found
No related tags found
No related merge requests found
Pipeline #21 failed
......@@ -26,7 +26,7 @@ build-release: #This will be executed if you oush 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 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
......
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