Commit edc1c49b authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: Use a single deploy job instead of separate jobs for each OS/arch.

parent b8b40cee
......@@ -20,7 +20,7 @@ import subprocess as sp
import yaml
__version__ = '0.19.6'
__version__ = '0.19.7'
"""Current version of the fsl-ci-rules."""
......
#!/usr/bin/env python
#
# Deploy a built conda package to a FSL conda channel.
# Deploy one or more built conda packages to a FSL conda channel.
#
# Deploying a built conda package is simply a matter of copying the
# built packages into the channel directory and running "conda index".
......@@ -74,7 +74,7 @@ def main():
channeldir = os.environ['FSLCONDA_PUBLIC_CHANNEL_DIRECTORY']
fprint( '************************************')
fprint(f'Deploying built conda package for: {recipename}')
fprint(f'Deploying built conda packages for: {recipename}')
fprint(f'Recipe URL: {recipeurl}')
fprint( 'Project repository (empty means build ')
fprint(f' is from repo specified in meta.yaml): {projrepo}')
......
......@@ -15,12 +15,23 @@
# to the master branch of the project repository. In
# either case, this job must be manually started via
# the gitlab UI.
.deploy-conda-package:
deploy-conda-package:
stage: fsl-ci-deploy
extends: .fsl-ci-rules-job
tags:
- fslconda-channel-host
dependencies:
- build-noarch-conda-package
- build-linux-64-conda-package
- build-macos-64-conda-package
- build-macos-M1-conda-package
- build-linux-64-cuda-9.2-conda-package
- build-linux-64-cuda-10.2-conda-package
- build-linux-64-cuda-11.0-conda-package
- build-linux-64-cuda-11.1-conda-package
- build-linux-64-cuda-11.3-conda-package
# Default value, will be overridden
# by API triggered pipelines
variables:
......@@ -28,30 +39,6 @@
rules:
# Do not run jobs if they are disabled
# via the FSLCONDA_SKIP_PLATFORM variable.
- if: '($CI_JOB_NAME == "deploy-noarch-conda-package" &&
$FSLCONDA_SKIP_PLATFORM =~ /(^| )noarch($| )/) ||
($CI_JOB_NAME == "deploy-linux-64-conda-package" &&
$FSLCONDA_SKIP_PLATFORM =~ /(^| )linux-64($| )/) ||
($CI_JOB_NAME == "deploy-macos-64-conda-package" &&
$FSLCONDA_SKIP_PLATFORM =~ /(^| )macos-64($| )/) ||
($CI_JOB_NAME == "deploy-macos-M1-conda-package" &&
$FSLCONDA_SKIP_PLATFORM =~ /(^| )macos-M1($| )/) ||
($CI_JOB_NAME =~ /^deploy-linux-64-cuda-.*-conda-package$/ &&
$FSLCONDA_SKIP_PLATFORM =~ /(^| )linux-64-cuda($| )/) ||
($CI_JOB_NAME == "deploy-linux-64-cuda-9.2-conda-package" &&
$FSLCONDA_SKIP_PLATFORM =~ /(^| )linux-64-cuda-9.2($| )/) ||
($CI_JOB_NAME == "deploy-linux-64-cuda-10.2-conda-package" &&
$FSLCONDA_SKIP_PLATFORM =~ /(^| )linux-64-cuda-10.2($| )/) ||
($CI_JOB_NAME == "deploy-linux-64-cuda-11.0-conda-package" &&
$FSLCONDA_SKIP_PLATFORM =~ /(^| )linux-64-cuda-11.0($| )/) ||
($CI_JOB_NAME == "deploy-linux-64-cuda-11.1-conda-package" &&
$FSLCONDA_SKIP_PLATFORM =~ /(^| )linux-64-cuda-11.1($| )/) ||
($CI_JOB_NAME == "deploy-linux-64-cuda-11.3-conda-package" &&
$FSLCONDA_SKIP_PLATFORM =~ /(^| )linux-64-cuda-11.3($| )/)'
when: never
# This job is only run on master branch of recipe
# repository, and when DEPLOY is non-empty, and
# must be started manually via the gitlab web UI.
......@@ -65,57 +52,6 @@
- deploy_conda_package
deploy-noarch-conda-package:
extends: .deploy-conda-package
dependencies:
- build-noarch-conda-package
deploy-linux-64-conda-package:
extends: .deploy-conda-package
dependencies:
- build-linux-64-conda-package
deploy-macos-64-conda-package:
extends: .deploy-conda-package
dependencies:
- build-macos-64-conda-package
deploy-macos-M1-conda-package:
extends: .deploy-conda-package
dependencies:
- build-macos-M1-conda-package
deploy-linux-64-cuda-9.2-conda-package:
extends: .deploy-conda-package
dependencies:
- build-linux-64-cuda-9.2-conda-package
deploy-linux-64-cuda-10.2-conda-package:
extends: .deploy-conda-package
dependencies:
- build-linux-64-cuda-10.2-conda-package
deploy-linux-64-cuda-11.0-conda-package:
extends: .deploy-conda-package
dependencies:
- build-linux-64-cuda-11.0-conda-package
deploy-linux-64-cuda-11.1-conda-package:
extends: .deploy-conda-package
dependencies:
- build-linux-64-cuda-11.1-conda-package
deploy-linux-64-cuda-11.3-conda-package:
extends: .deploy-conda-package
dependencies:
- build-linux-64-cuda-11.3-conda-package
# Open a MR on the fsl/conda/manifest repository
# to update the project version number in the FSL
......
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