From 989a9acc409bef3d7fb4c30177bb423c744ec6a7 Mon Sep 17 00:00:00 2001 From: Tamas Kiss Date: Thu, 26 May 2022 01:48:32 +0200 Subject: [PATCH] ci: add drone.yml --- .drone.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..eeb4d13 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,33 @@ +--- +kind: pipeline +type: kubernetes +name: Terraform root module + +trigger: + event: + - cron + - push + branch: + - master + +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: + - master + event: + - push + image: hashicorp/terraform:1.1.8 + commands: + - terraform apply -plan .tfplan -auto-approve