From 02c8291e85c18d1c5a277dc25584033e4a69c849 Mon Sep 17 00:00:00 2001 From: Romain Hunault Date: Fri, 17 Jun 2022 19:03:46 +0200 Subject: Run release builds on hotfix branches. --- .gitlab-ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to '.gitlab-ci.yml') 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 -- cgit v1.2.1