Skip to content

Commit

Permalink
Fix working directories
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnaab committed Jun 19, 2024
1 parent 0249911 commit b19f247
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/_terraform-plan-pr-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ jobs:

- name: Initialize Terraform CDK configuration
shell: bash
working-directory: infra
run: |
cd infra
pnpm cdktf get
pnpm build:tsc
Expand All @@ -68,11 +68,13 @@ jobs:
cf api https://api.fr.cloud.gov
- name: Synthesize Terraform configuration
working-directory: infra
run: |
DEPLOY_ENV=${DEPLOY_ENV} pnpm cdktf synth
- name: Get Terraform stack name
id: get_stack_name
working-directory: infra
run: |
DEPLOY_ENV=${DEPLOY_ENV} pnpm cdktf output --outputs-file outputs.json
echo "stack_name=$(jq -r 'keys[0]' outputs.json)" >> $GITHUB_OUTPUT
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_terraform_apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ jobs:

- name: Initialize Terraform CDK configuration
shell: bash
working-directory: infra
run: |
cd infra
pnpm cdktf get
pnpm build:tsc
Expand All @@ -68,7 +68,7 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
shell: bash
working-directory: infra
run: |
cd infra
cf api https://api.fr.cloud.gov
DEPLOY_ENV=${DEPLOY_ENV} pnpm cdktf deploy --auto-approve
2 changes: 1 addition & 1 deletion .github/workflows/add-terraform-plan-to-pr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Add Terraform CDK plan as comment on pull request
name: Post Terraform plan to pull request comment

on:
pull_request:
Expand Down

0 comments on commit b19f247

Please sign in to comment.