mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
dont try to use shared/.tfvars when deploying cloudfront cdn
This commit is contained in:
parent
3f10af0be5
commit
20cc5a3059
1 changed files with 8 additions and 3 deletions
11
.github/workflows/deploy_terraform.yml
vendored
11
.github/workflows/deploy_terraform.yml
vendored
|
|
@ -374,13 +374,18 @@ jobs:
|
|||
|
||||
- name: Terraform Workspace
|
||||
working-directory: infrastructure/terraform/cdn
|
||||
run: terraform workspace select ${STAGE} || terraform workspace new ${STAGE}
|
||||
run: |
|
||||
terraform workspace select $STAGE \
|
||||
|| terraform workspace new $STAGE
|
||||
|
||||
- name: Terraform Plan
|
||||
working-directory: infrastructure/terraform/cdn
|
||||
run: terraform plan -var-file=${STAGE}.tfvars -out=tfplan
|
||||
run: |
|
||||
terraform plan \
|
||||
-var="stage=${STAGE}" \
|
||||
-out=tfplan
|
||||
|
||||
- name: Terraform Apply
|
||||
if: env.TERRAFORM_APPLY == 'true'
|
||||
working-directory: infrastructure/terraform/cdn
|
||||
run: terraform apply -auto-approve tfplan
|
||||
run: terraform apply -auto-approve tfplan
|
||||
Loading…
Add table
Reference in a new issue