Update .gitlab-ci.yml

This commit is contained in:
2022-11-05 13:02:00 +00:00
parent 610703b93e
commit d1c712e8fc

View File

@@ -117,14 +117,13 @@ k3s-destroy:
allow_failure: false allow_failure: false
extends: .terraform_destroy extends: .terraform_destroy
needs: ["k3s"] needs: ["k3s"]
when: manual
rules: rules:
- if: '$CI_COMMIT_BRANCH == "main"' - if: '$CI_COMMIT_BRANCH == "main"'
changes: changes:
paths: paths:
- 'terraform/*' - 'terraform/*'
- 'ansible/*' - 'ansible/*'
when: always when: manual
- if: '$CI_COMMIT_BRANCH == "main"' - if: '$CI_COMMIT_BRANCH == "main"'
changes: changes:
paths: paths: