Commit 4ecf4e58 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

fix: avoid merge request pipelines

parent 1ccac2bd
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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
@@ -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'