add woodpecker configs
continuous-integration/woodpecker the build was successful Details

pull/1/head
Ariadne Conill 2022-06-09 02:29:59 +00:00
parent 7147a03f09
commit 62e7672b08
1 changed files with 33 additions and 0 deletions

33
.woodpecker/dns.yml Normal file
View File

@ -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