add woodpecker configs
continuous-integration/woodpecker the build was successful
Details
continuous-integration/woodpecker the build was successful
Details
parent
7147a03f09
commit
62e7672b08
|
@ -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
|
Loading…
Reference in New Issue