Skip to content
Snippets Groups Projects
Commit 10a9764f authored by Jean-Baptiste Bayle's avatar Jean-Baptiste Bayle
Browse files

Fix automatic latest tagging

parent d26d04c3
No related branches found
No related tags found
1 merge request!139Resolve "Fix automatic versioning and latest tagging"
Pipeline #204021 passed
......@@ -44,14 +44,15 @@ dist:
tag-latest:
stage: deploy
image: alpine/git
script:
image: datamachines/git-lfs
before_script:
- git config http.sslverify false
- git config user.email "${GITLAB_USER_EMAIL}"
- git config user.name "${GITLAB_USER_NAME}"
- git remote add tag-origin https://oauth2:${GITLAB_ACCESS_TOKEN}@gitlab.in2p3.fr/${CI_PROJECT_PATH}
- git push --delete tag-origin latest
- git tag latest
- git push tag-origin latest
- git remote set-url origin https://gitlab-ci:${GITLAB_CI_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git
script:
- git tag --force latest
- git push --force origin latest
rules:
- if: '$CI_COMMIT_TAG =~ /^v\d+(?:\.\d+){0,2}$/'
......
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