Add a deploy phase to the CI that tags the latest nightly pipeline if it passes.

This commit is contained in:
Antonio Sánchez
2024-12-05 15:28:18 +00:00
parent 5e8916050b
commit de4afcf414
2 changed files with 14 additions and 0 deletions

12
ci/deploy.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,12 @@
# Push a nightly tag if the pipeline succeeded.
deploy:tag:
stage: deploy
script:
- git tag nightly master
- git push https://sillyprof:$EIGEN_CI_ACCESS_TOKEN@gitlab.com/libeigen/eigen.git master tag nightly
tags:
- linux
- eigen-runner
rules:
- if: $CI_PIPELINE_SOURCE == "schedule" && $CI_PROJECT_NAMESPACE == "libeigen"
- if: $CI_PIPELINE_SOURCE == "web" && $CI_PROJECT_NAMESPACE == "libeigen"