From 62e7672b086c6f00248dbd569d5d2494804380e6 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 9 Jun 2022 02:29:59 +0000 Subject: [PATCH] add woodpecker configs --- .woodpecker/dns.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .woodpecker/dns.yml diff --git a/.woodpecker/dns.yml b/.woodpecker/dns.yml new file mode 100644 index 0000000..f5561f0 --- /dev/null +++ b/.woodpecker/dns.yml @@ -0,0 +1,33 @@ +pipeline: + validate: + image: alpine + when: + path: "dns/**" + event: pull_request + secrets: + - linode_token + commands: + - apk add --no-cache terraform + - terraform version + - | + cd dns + echo 'token = "$${LINODE_TOKEN}"' > .auto.tfvars + terraform validate + terraform plan + + deploy: + image: alpine + when: + path: "dns/**" + event: push + secrets: + - linode_token + commands: + - apk add --no-cache terraform + - terraform version + - | + cd dns + echo 'token = "$${LINODE_TOKEN}"' > .auto.tfvars + terraform validate + terraform plan -out deploy.plan + terraform apply deploy.plan