diff options
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 97be945..1751251 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,6 +46,8 @@ quality-analysis: when: never - if: '$CI_COMMIT_BRANCH == "main"' when: never + - if: '$CI_COMMIT_REF_PROTECTED == "true"' + when: never - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' when: never - when: always @@ -59,6 +61,8 @@ build-debug: when: never - if: '$CI_COMMIT_BRANCH == "main"' when: never + - if: '$CI_COMMIT_REF_PROTECTED == "true"' + when: never - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' when: never - when: on_success @@ -75,6 +79,8 @@ test-debug: when: never - if: '$CI_COMMIT_BRANCH == "main"' when: never + - if: '$CI_COMMIT_REF_PROTECTED == "true"' + when: never - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' when: never - when: on_success @@ -94,6 +100,11 @@ build-full: MAPBOX_KEY: $MAPBOX_KEY_PROD MAPBOX_SECRET_KEY: $MAPBOX_SECRET_KEY_PROD when: always + - if: '$CI_COMMIT_REF_PROTECTED == "true"' + variables: + MAPBOX_KEY: $MAPBOX_KEY_PROD + MAPBOX_SECRET_KEY: $MAPBOX_SECRET_KEY_PROD + when: always - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main"' when: always - when: never |