Commit 38ffe0e6 authored by Celine Noirot's avatar Celine Noirot
Browse files

Run CI only when files Singularity change

parent 73ec933a
Pipeline #25936 passed with stages
in 5 minutes and 59 seconds
......@@ -15,8 +15,19 @@ singularity-image:
artifacts:
paths:
- template.sif
only:
changes:
- .gitlab-ci.yml
- Singularityfile
- emvironement.yml
# Push the image template.sif on the registry
deploy:
stage: deploy
script:
- singularity push --docker-username "${CI_REGISTRY_USER}" --docker-password "${CI_REGISTRY_PASSWORD}" template.sif oras://"$CI_REGISTRY_IMAGE"/"$CI_PROJECT_NAME":"$CI_COMMIT_TAG"
only:
changes:
- .gitlab-ci.yml
- Singularityfile
- emvironement.yml
\ No newline at end of file
Supports Markdown
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