Commit 2d8ea5b5 authored by Hadrien G's avatar Hadrien G
Browse files

Alternative option: keep merge request pipelines fully disabled, as Gitlab does by default

parent 344aa7bc
Pipeline #185936 canceled with stages
in 10 minutes and 8 seconds
......@@ -9,12 +9,6 @@ variables:
OFFICIAL_SOPHYA_ENV: "${CI_REGISTRY_IMAGE}:latest"
SOPHYABASE: "/usr/local/SOPHYA"
# Make sure that merge request pipelines run the full CI chain (they only run
# when enabled by rules:, and we currently only have rules: in some jobs)
workflow:
rules:
- when: always
# Docker image used for all purposes but environment building
default:
image: "${BUILD_ENV}"
......@@ -247,7 +241,7 @@ Deploy docker images:
--destination "${OFFICIAL_IMAGE}"
done
rules:
- if: ($CI_PROJECT_PATH == "SOPHYA/Sophya") && ($CI_COMMIT_REF_NAME == "develop")
- if: ($CI_PROJECT_PATH == "SOPHYA/Sophya") && ($CI_COMMIT_REF_NAME == "develop") && ($CI_PIPELINE_SOURCE != "merge_request_event")
# === Whether CI succeeded or not, discard artifacts that won't be reused (cleanup stage) ===
......
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