ci: tf cloud token

This commit is contained in:
kiara 2022-08-13 20:56:59 +00:00
parent b7add5777f
commit 38478ffb76
1 changed files with 7 additions and 1 deletions

View File

@ -7,7 +7,13 @@ pipeline:
commands:
- apk add --no-cache terraform
- terraform version
- |
cat << EOF > terraform.rc
credentials "app.terraform.io" {
token = "$TERRAFORM_CLOUD_TOKEN"
}
EOF
- terraform init
- terraform validate
- terraform plan -var ""
secrets: []
secrets: [ terraform_cloud_token ]