From 7a9cb0536894536ec9ea7677fdce281f3f275238 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Fri, 4 Nov 2022 23:47:07 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8dcb6e3..3132fa0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,9 +15,6 @@ plan: ARGUMENTS: -var=pm_password=$pm_password -var=pm_api_url=$pm_api_url -var-file=terraform.tfvars allow_failure: false extends: .terraform_plan - only: - changes: - - terraform/* rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" @@ -33,6 +30,10 @@ apply: - terraform/* rules: - if: '$CI_COMMIT_BRANCH == "main"' + changes: + compare_to: refs/heads/main + paths: + - '/terraform/*' #apply: