Skip to content

Commit

Permalink
Add working dir for tf commands
Browse files Browse the repository at this point in the history
  • Loading branch information
rawanmahdi committed Nov 10, 2023
1 parent 072cce8 commit 3c6b9c1
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/manual_terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ jobs:
env:
GCP_SA_KEY_BASE64: ${{ secrets.GCP_SA_KEY_BASE64 }}

- name: Terraform Init
run: terraform init
- name: Terraform Init and Plan
working-directory: ./cloud-infra
run: |
terraform init
terraform plan -out=tfplan
- name: Terraform Plan
run: terraform plan -out=tfplan
- name: Hold for approval
if: github.event_name == 'workflow_dispatch'
Expand All @@ -50,5 +51,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Terraform Apply
working-directory: ./cloud-infra
if: github.event_name == 'workflow_dispatch'
run: terraform apply tfplan
run: |
terraform apply tfplan

0 comments on commit 3c6b9c1

Please sign in to comment.