Commit 53378e4e authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

fix: revert test jobs on change only

parent 42565e03
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -601,12 +601,8 @@ tf-tfsec:
    # on any branch: when $TFSEC_ENABLED is set
    # on production or integration branches: auto
    - if: '$TF_TFSEC_ENABLED == "true" && ($CI_COMMIT_REF_NAME =~ $PROD_REF || $CI_COMMIT_REF_NAME =~ $INTEG_REF)'
      changes:  
        - $TF_PROJECT_DIR/**/*
    # else (development branches): allow failure
    - if: '$TF_TFSEC_ENABLED == "true"'
      changes:  
        - $TF_PROJECT_DIR/**/*
      allow_failure: true

tf-tflint:
@@ -635,8 +631,6 @@ tf-tflint:
    - if: '$CI_MERGE_REQUEST_ID || $TF_TFLINT_DISABLED == "true"'
      when: never
    - if: $CI_COMMIT_REF_NAME  # useless but prevents GitLab from warning
      changes:  
        - $TF_PROJECT_DIR/**/*


tf-checkov:
@@ -667,12 +661,8 @@ tf-checkov:
    # on any branch: when $TF_CHECKOV_ENABLED is set
    # on production or integration branches: auto
    - if: '$TF_CHECKOV_ENABLED == "true" && ($CI_COMMIT_REF_NAME =~ $PROD_REF || $CI_COMMIT_REF_NAME =~ $INTEG_REF)'
      changes:  
        - $TF_PROJECT_DIR/**/*
    # else (development branches): allow failure
    - if: '$TF_CHECKOV_ENABLED == "true"'
      changes:  
        - $TF_PROJECT_DIR/**/*
      allow_failure: true

tf-infracost:
@@ -693,12 +683,8 @@ tf-infracost:
    # on any branch: when $TF_INFRACOST_ENABLED is set
    # on production or integration branches: auto
    - if: '$TF_INFRACOST_ENABLED == "true" && ($CI_COMMIT_REF_NAME =~ $PROD_REF || $CI_COMMIT_REF_NAME =~ $INTEG_REF)'
      changes:  
        - $TF_PROJECT_DIR/**/*
    # else (development branches): allow failure
    - if: '$TF_INFRACOST_ENABLED == "true"'
      changes:  
        - $TF_PROJECT_DIR/**/*
      allow_failure: true