diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..e1ebd06 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,33 @@ +--- +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