Commit 568d60bf authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

CI: clear channel job defs

parent e59afd51
......@@ -17,7 +17,6 @@
# the gitlab UI.
.deploy-conda-package:
stage: fsl-ci-deploy
image: $FSL_CI_IMAGE_LINUX_64
extends: .fsl-ci-rules-job
tags:
- fslconda-channel-host
......
......@@ -25,6 +25,7 @@ test-ci-rules:
- pip install pytest
- pytest -v fsl_ci/tests
# This job is only executed on the
# fsl/fsl-ci-rules repository, on
# non-master branches (i.e. merge request
......@@ -130,7 +131,6 @@ build-docker-image-linux-64-cuda-11.3:
# as they can sometimes be corrupted.
purge-channel-indexes:
stage: fsl-ci-pre
image: $FSL_CI_IMAGE_LINUX_64
extends: .fsl-ci-rules-job
tags:
- fslconda-channel-host
......@@ -142,3 +142,38 @@ purge-channel-indexes:
when: manual
script:
- purge_channel_indexes
# USE WITH CAUTION
#
# This job can be manually invoked to clear
# the contents of the public conda channel.
# See the clear_channel script for details.
.clear-channel:
stage: fsl-ci-pre
image: $FSL_CI_IMAGE_LINUX_64
extends: .fsl-ci-rules-job
tags:
- fslconda-channel-host
variables:
DRY_RUN: true
rules:
- if: '$CI_PROJECT_PATH == "fsl/fsl-ci-rules" &&
$CI_COMMIT_TAG == null &&
$CI_COMMIT_REF_NAME == "master" &&
$CI_PIPELINE_SOURCE != "merge_request_event"'
when: manual
script:
- clear_channel
# The clear_channel script looks at the
# CI job name to determine which channel
# to clear.
clear-public-channel:
extends: .clear-channel
clear-private-channel:
extends: .clear-channel
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment