Skip to content

Commit

Permalink
circleci build enhancements (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgvishnuram authored May 13, 2021
1 parent c8cfb09 commit 5f4f10e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
21 changes: 12 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,18 @@ workflows:
- terraform_lint:
context:
- slack
#- terraform_apply:
# requires:
# - terraform_lint
# context:
# - slack
#- terraform_destroy:
# requires:
# - terraform_apply
# context: slack
- terraform_apply:
requires:
- terraform_lint
context:
- slack
- gcp-dev
- terraform_destroy:
requires:
- terraform_apply
context:
- slack
- gcp-dev
#- git_tag:
# context:
# - github-repo
Expand Down
4 changes: 4 additions & 0 deletions examples/from_scratch/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ variable "zonal" {
default = false
}

variable "spotinist_token" {
default = "12345"
}

module "astronomer_gcp" {
source = "../.."
deployment_id = var.deployment_id
Expand Down
2 changes: 1 addition & 1 deletion pipeline/run_terraform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ TERRAFORM="${TERRAFORM:-terraform-0.13.7}"

"${TERRAFORM}" -v

echo "$GOOGLE_CREDENTIAL_FILE_CONTENT" > /tmp/account.json
echo "$GCP_TOKEN" > /tmp/account.json

set -xe

Expand Down

0 comments on commit 5f4f10e

Please sign in to comment.