summaryrefslogtreecommitdiffstats
path: root/.gitlab/upload.yml
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-04-04 16:08:40 (GMT)
committerBrad King <brad.king@kitware.com>2022-04-04 17:23:37 (GMT)
commitcb44e0d47c2ea63f60688a254f6018a8c435a554 (patch)
tree1a5cc04be4fa5f7307bc5f56b0dc8b06bae1e885 /.gitlab/upload.yml
parent3a9a9a3ace76c2d3b8b08d60dc219bffcc619928 (diff)
downloadCMake-cb44e0d47c2ea63f60688a254f6018a8c435a554.zip
CMake-cb44e0d47c2ea63f60688a254f6018a8c435a554.tar.gz
CMake-cb44e0d47c2ea63f60688a254f6018a8c435a554.tar.bz2
gitlab-ci: distinguish release and development pipeline schedules
Redefine the `CMAKE_CI_PACKAGE` pipeline schedule variable to indicate whether it is for a development version (`dev`) or a release version (`v[0-9]...`). Use this to automatically turn package upload jobs on or off without having to edit the jobs in `.gitlab-ci.yml` for release branches.
Diffstat (limited to '.gitlab/upload.yml')
-rw-r--r--.gitlab/upload.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.gitlab/upload.yml b/.gitlab/upload.yml
index 287b105..88ceba8 100644
--- a/.gitlab/upload.yml
+++ b/.gitlab/upload.yml
@@ -18,6 +18,9 @@
- ssh-keygen -y -f $RSYNC_BINARY_KEY > $RSYNC_BINARY_KEY.pub
- rsync -tv --recursive -e "ssh -i $RSYNC_BINARY_KEY -o StrictHostKeyChecking=no -o LogLevel=ERROR" build/ kitware@cmake.org:$RSYNC_DESTINATION/
+ variables:
+ CMAKE_CI_JOB_UPLOAD_PACKAGE: "true"
+
.rsync_upload_help:
stage: upload
image: "fedora:34"