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

CI: Separate deploy / update manifest steps into separate jobs, so latter can

run in docker.
parent 83814355
......@@ -4,8 +4,8 @@
# every time a new tag is added to the fsl/conda/installer gitlab
# repository.
#
# First we copy the installer into the deployment directory, denoted by the
# $FSLINSTALLER_DEPLOY_DIRECTORY environment variable.
# This simply involves copying the installer into the deployment directory,
# denoted by the $FSLINSTALLER_DEPLOY_DIRECTORY environment variable.
set -e
......@@ -19,13 +19,3 @@ if [ "$scriptver" != "$CI_COMMIT_TAG" ]; then
fi
cp fslinstaller.py $FSLINSTALLER_DEPLOY_DIRECTORY/
# Then we call the update_manifest.py script, which opens a merge request
# on the fsl/conda/manifest repository, to update the latest available
# installer version in the manifest.
#
# The update_manifest.py script uses functionality from fsl-ci-rules, so
# we need to install that before running the script.
python -m pip install --upgrade pip
python -m pip install git+https://git.fmrib.ox.ac.uk/fsl/fsl-ci-rules.git
python ./.ci/update_manifest.py
#!/usr/bin/env bash
# Here we call the update_manifest.py script, which opens a merge request
# on the fsl/conda/manifest repository, to update the latest available
# installer version in the manifest.
#
# The update_manifest.py script uses functionality from fsl-ci-rules, so
# we need to install that before running the script.
python -m pip install --upgrade pip
python -m pip install git+https://git.fmrib.ox.ac.uk/fsl/fsl-ci-rules.git
python ./.ci/update_manifest.py
......@@ -105,13 +105,25 @@ check-version:
fi
release:
image: python:3.9
release-new-version:
stage: release
tags:
- fsl-ci
- fslconda-channel-host
rules:
- if: '$CI_COMMIT_TAG != null'
when: manual
script:
- bash ./.ci/new_release.sh
update-fsl-manifest:
stage: release
image: python:3.9
tags:
- fsl-ci
- docker
rules:
- if: '$CI_COMMIT_TAG != null'
when: manual
script:
- bash ./.ci/update_manifest.sh
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