Skip to content

Commit

Permalink
fix(infra): update terraform dir in cd-prod (#1544)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotoleeoak authored Mar 6, 2024
1 parent 32b6376 commit 4cafe55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cd-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
terraform_version: 1.5.2

- name: Create Terraform variable file
working-directory: ./infra/deploy
working-directory: ./apps/infra/deploy
run: |
echo "$TFVARS" >> terraform.tfvars
echo "$OAUTH_GITHUB" >> terraform.tfvars
Expand All @@ -121,14 +121,14 @@ jobs:
OAUTH_KAKAO: ${{ secrets.OAUTH_KAKAO }}

- name: Terraform Init
working-directory: ./infra/deploy
working-directory: ./apps/infra/deploy
run: terraform init

# TODO: plan in the other job, and reuse the plan file
- name: Terraform Plan
working-directory: ./infra/deploy
working-directory: ./apps/infra/deploy
run: terraform plan -target=module.codedang-infra -input=false

- name: Terraform Apply
working-directory: ./infra/deploy
working-directory: ./apps/infra/deploy
run: terraform apply -target=module.codedang-infra -auto-approve -input=false

0 comments on commit 4cafe55

Please sign in to comment.