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