diff options
author | Romain Hunault <romain.hunault@e.email> | 2022-06-17 19:03:46 +0200 |
---|---|---|
committer | Romain Hunault <romain.hunault@e.email> | 2022-06-17 19:15:48 +0200 |
commit | 02c8291e85c18d1c5a277dc25584033e4a69c849 (patch) | |
tree | 33705303012cc4892c8e4b1e1370a3840a3244c2 | |
parent | 3ba0f13566547085290638634dbb1b76d57353d0 (diff) |
Run release builds on hotfix branches.
-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 |