Compare commits

..

1 Commits

Author SHA1 Message Date
Ariadne Conill 660036ae5f dns: add test record
continuous-integration/woodpecker the build failed Details
2022-06-09 02:38:02 +00:00
1 changed files with 13 additions and 12 deletions

View File

@ -1,6 +1,6 @@
pipeline:
validate:
image: alpine:3.16
image: alpine
when:
path: "dns/**"
event: pull_request
@ -9,24 +9,25 @@ pipeline:
commands:
- apk add --no-cache terraform
- terraform version
- cd dns
- terraform init
- terraform validate
- terraform plan -var "token=$LINODE_TOKEN"
- |
cd dns
echo 'token = "$${LINODE_TOKEN}"' > .auto.tfvars
terraform validate
terraform plan
deploy:
image: alpine:3.16
image: alpine
when:
path: "dns/**"
branch: main
event: push
secrets:
- linode_token
commands:
- apk add --no-cache terraform
- terraform version
- cd dns
- terraform init
- terraform validate
- terraform plan -out deploy.plan -var "token=$LINODE_TOKEN"
- terraform apply deploy.plan -var "token=$LINODE_TOKEN"
- |
cd dns
echo 'token = "$${LINODE_TOKEN}"' > .auto.tfvars
terraform validate
terraform plan -out deploy.plan
terraform apply deploy.plan