Skip to content

Commit

Permalink
Update terraform/terraform.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
fmdlc committed Sep 26, 2021
1 parent 87b331d commit fedd2b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ workflow:
- rm -rf ${TF_ROOT}/.terraform.lock.hcl
script:
- base64 -d ${TF_CONFIG} > ${HOME}/.terraform.rc
- ls -al ${HOME}
- base64 -d ${TF_CONFIG} > .terraform.rc
- terraform init -backend=true -backend-config=./vars/$ENV/backend.tf
- terraform plan -out=state.tfplan -var-file=./vars/$ENV/terraform.tfvars
artifacts:
name: ${ENV}
expire_in: 2 hours
paths:
- ${TF_ROOT}/.terraform.rc
- ${HOME}/.terraform.rc
- ${TF_ROOT}/.terraform
- ${TF_ROOT}/state.tfplan
Expand All @@ -34,6 +35,5 @@ workflow:
allow_failure: false
stage: terraform-apply
script:
- ls -al ${HOME}
- terraform apply -auto-approve "state.tfplan"
when: manual

0 comments on commit fedd2b6

Please sign in to comment.