fix directory

This commit is contained in:
Jun-te Kim 2026-02-03 08:11:38 +00:00
parent 558932aaa8
commit 9f91a3b547

View file

@ -23,19 +23,25 @@ jobs:
uses: hashicorp/setup-terraform@v3
- name: Terraform Init
working-directory: ./infrastructure/terraform/shared/
working-directory: ./infrastructure/terraform
shell: bash
run: terraform init -reconfigure
run: |
cd shared
terraform init -reconfigure
- name: Terraform Workspace
working-directory: ./infrastructure/terraform/shared/
working-directory: ./infrastructure/terraform
shell: bash
run: terraform workspace select dev || terraform workspace new dev
run: |
cd shared
terraform workspace select dev || terraform workspace new dev
- name: Terraform Plan (shared)
working-directory: ./infrastructure/terraform/shared/
working-directory: ./infrastructure/terraform
shell: bash
run: terraform plan -var-file=dev.tfvars -out=tfplan
run: |
cd shared
terraform plan -var-file=dev.tfvars -out=tfplan
# - name: Terraform Apply
# working-directory: ./infrastructure/terraform/shared