Loading templates/gitlab-ci-terraform.yml +0 −14 Original line number Diff line number Diff line Loading @@ -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: Loading Loading @@ -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: Loading Loading @@ -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: Loading @@ -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 Loading Loading
templates/gitlab-ci-terraform.yml +0 −14 Original line number Diff line number Diff line Loading @@ -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: Loading Loading @@ -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: Loading Loading @@ -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: Loading @@ -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 Loading