ci: tf cloud token
This commit is contained in:
parent
b7add5777f
commit
38478ffb76
|
@ -7,7 +7,13 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache terraform
|
- apk add --no-cache terraform
|
||||||
- terraform version
|
- terraform version
|
||||||
|
- |
|
||||||
|
cat << EOF > terraform.rc
|
||||||
|
credentials "app.terraform.io" {
|
||||||
|
token = "$TERRAFORM_CLOUD_TOKEN"
|
||||||
|
}
|
||||||
|
EOF
|
||||||
- terraform init
|
- terraform init
|
||||||
- terraform validate
|
- terraform validate
|
||||||
- terraform plan -var ""
|
- terraform plan -var ""
|
||||||
secrets: []
|
secrets: [ terraform_cloud_token ]
|
||||||
|
|
Loading…
Reference in New Issue