Skip to content
Snippets Groups Projects
Commit 49097f0d authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

fix: singularity correct matrix

parent a659cbae
No related branches found
No related tags found
1 merge request!701feat: use official singularity image
...@@ -410,6 +410,7 @@ jug_xl:nightly: ...@@ -410,6 +410,7 @@ jug_xl:nightly:
--build-context detectors=. --build-context detectors=.
containers/jug containers/jug
.singularity: .singularity:
image: image:
name: ${SINGULARITY_IMAGE} name: ${SINGULARITY_IMAGE}
...@@ -418,7 +419,10 @@ jug_xl:nightly: ...@@ -418,7 +419,10 @@ jug_xl:nightly:
interruptible: true interruptible: true
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: always when: on_success
- if: '$CI_COMMIT_BRANCH == "master"'
when: on_success
- when: never
artifacts: artifacts:
expire_in: 1 days expire_in: 1 days
paths: paths:
...@@ -426,40 +430,35 @@ jug_xl:nightly: ...@@ -426,40 +430,35 @@ jug_xl:nightly:
before_script: "" before_script: ""
script: script:
- mkdir build - mkdir build
- singularity pull build/${BUILD_IMAGE}.sif docker://${CI_REGISTRY_IMAGE}/${BUILD_IMAGE}:${INTERNAL_TAG} - singularity pull build/${BUILD_IMAGE}.sif docker://${CI_REGISTRY_IMAGE}/${BUILD_IMAGE}:${INTERNAL_TAG}-${BUILD_TYPE}
after_script: "" after_script: ""
jug_dev:singularity:default: jug_dev:singularity:
parallel:
matrix:
- BUILD_TYPE:
- default
- nightly
BUILD_IMAGE:
- jug_dev
extends: .singularity extends: .singularity
needs: needs:
- version - version
- jug_dev - jug_dev
variables:
BUILD_IMAGE: "jug_dev"
jug_xl:singularity:default: jug_xl:singularity:
parallel:
matrix:
- BUILD_TYPE:
- default
- nightly
BUILD_IMAGE:
- jug_xl
extends: .singularity extends: .singularity
needs: needs:
- version - version
- jug_xl:default - jug_xl
variables:
BUILD_IMAGE: "jug_xl"
jug_xl:singularity:nightly:
extends: .singularity
rules:
- !reference ['.singularity', rules]
- if: '$CI_COMMIT_BRANCH == "master"'
when: on_success
- when: never
needs:
- version
- jug_xl:nightly
variables:
BUILD_IMAGE: "jug_xl"
script:
- mkdir build
- singularity pull build/${BUILD_IMAGE}.sif docker://${CI_REGISTRY_IMAGE}/${BUILD_IMAGE}:${NIGHTLY_TAG}
benchmarks:reconstruction:default: benchmarks:reconstruction:default:
stage: benchmarks stage: benchmarks
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment