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

View File

@ -11,6 +11,7 @@ stages:
- checkformat
- build
- test
- deploy
variables:
# CMake build directory.
@ -29,3 +30,4 @@ include:
- "/ci/build.windows.gitlab-ci.yml"
- "/ci/test.linux.gitlab-ci.yml"
- "/ci/test.windows.gitlab-ci.yml"
- "/ci/deploy.gitlab-ci.yml"

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"