Update .gitlab-ci.yml

This commit is contained in:
2022-11-05 12:58:08 +00:00
parent fa0199183a
commit 610703b93e

View File

@@ -109,6 +109,32 @@ k3s-update:
when: always
- when: never
k3s-destroy:
stage: destroy
variables:
WORKDIR: $CI_PROJECT_DIR/terraform
ARGUMENTS: -var=pm_password=$pm_password -var=pm_api_url=$pm_api_url -var-file=terraform.tfvars
allow_failure: false
extends: .terraform_destroy
needs: ["k3s"]
when: manual
rules:
- if: '$CI_COMMIT_BRANCH == "main"'
changes:
paths:
- 'terraform/*'
- 'ansible/*'
when: always
- if: '$CI_COMMIT_BRANCH == "main"'
changes:
paths:
- 'ansible/dns.yml'
when: never
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
- when: never
#destroy:
# stage: destroy