Files
terraform-app-drone/.drone.yml
Tamas Kiss e705cb59a3
Some checks failed
continuous-integration/drone/push Build is failing
ci: add drone.yml
2022-05-26 01:55:00 +02:00

34 lines
483 B
YAML

---
kind: pipeline
type: kubernetes
name: Terraform root module
trigger:
event:
- cron
- push
branch:
- main
steps:
- name: init
image: hashicorp/terraform:1.1.8
commands:
- terraform init
- name: plan
image: hashicorp/terraform:1.1.8
commands:
- terraform plan -out .tfplan
- name: apply
when:
when:
branch:
- main
event:
- push
image: hashicorp/terraform:1.1.8
commands:
- terraform apply -plan .tfplan -auto-approve