Loading templates/gitlab-ci-terraform.yml +5 −2 Original line number Diff line number Diff line Loading @@ -948,6 +948,9 @@ tf-plan-production: action: prepare resource_group: tf-production rules: # exclude merge requests - if: $CI_MERGE_REQUEST_ID when: never # exclude tags - if: $CI_COMMIT_TAG when: never Loading @@ -957,8 +960,8 @@ tf-plan-production: # exclude if $TF_PROD_PLAN_ENABLED not set - if: '$TF_PROD_PLAN_ENABLED != "true"' when: never # enabled on merge requests targeting prod branch - if: '$CI_MERGE_REQUEST_ID && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME =~ $PROD_REF' # enabled on merge requests - if: $CI_OPEN_MERGE_REQUESTS # enabled on production branches - if: '$CI_COMMIT_REF_NAME =~ $PROD_REF' Loading Loading
templates/gitlab-ci-terraform.yml +5 −2 Original line number Diff line number Diff line Loading @@ -948,6 +948,9 @@ tf-plan-production: action: prepare resource_group: tf-production rules: # exclude merge requests - if: $CI_MERGE_REQUEST_ID when: never # exclude tags - if: $CI_COMMIT_TAG when: never Loading @@ -957,8 +960,8 @@ tf-plan-production: # exclude if $TF_PROD_PLAN_ENABLED not set - if: '$TF_PROD_PLAN_ENABLED != "true"' when: never # enabled on merge requests targeting prod branch - if: '$CI_MERGE_REQUEST_ID && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME =~ $PROD_REF' # enabled on merge requests - if: $CI_OPEN_MERGE_REQUESTS # enabled on production branches - if: '$CI_COMMIT_REF_NAME =~ $PROD_REF' Loading