further debug
continuous-integration/woodpecker the build failed Details

Ariadne Conill 2022-06-09 03:50:28 +00:00
parent 85004502ec
commit 91f6a82149
1 changed files with 8 additions and 9 deletions

View File

@ -4,18 +4,17 @@ pipeline:
when:
path: "dns/**"
event: pull_request
secrets:
- linode_token
- aws_access_key_id
- aws_secret_access_key
commands:
- apk add --no-cache terraform
- terraform version
- cd dns
- echo "linode token $LINODE_TOKEN"
- terraform init
- terraform validate
- terraform plan -var "token=$LINODE_TOKEN"
secrets:
- linode_token
- aws_access_key_id
- aws_secret_access_key
deploy:
image: alpine:3.16
@ -23,10 +22,6 @@ pipeline:
path: "dns/**"
branch: main
event: push
secrets:
- linode_token
- aws_access_key_id
- aws_secret_access_key
commands:
- apk add --no-cache terraform
- terraform version
@ -35,3 +30,7 @@ pipeline:
- terraform validate
- terraform plan -out deploy.plan -var "token=$LINODE_TOKEN"
- terraform apply deploy.plan -var "token=$LINODE_TOKEN"
secrets:
- linode_token
- aws_access_key_id
- aws_secret_access_key