Skip to content

Commit

Permalink
This time...for real
Browse files Browse the repository at this point in the history
  • Loading branch information
Guysnacho committed Sep 23, 2024
1 parent 0ebcc20 commit c24a0c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ jobs:
TF-Apply:
name: 🏗️ Apply Infra
runs-on: ubuntu-latest
# https://stackoverflow.com/questions/59175332/using-output-from-a-previous-job-in-a-new-one-in-a-github-action
outputs:
# https://unix.stackexchange.com/questions/281309/shell-syntax-how-to-correctly-use-to-break-lines
apigw: cd terraform && terraform output -raw api-route
apigw: ${{steps.APIGW.outputs.NEXT_PUBLIC_APIGW}}
steps:
- name: Check Out
uses: actions/checkout@v4
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
- name: ⚗️ Write env variables
run: |
cd web
echo ${{steps.APIGW.outputs.APIGW}} > .env
echo ${{needs.TF-Apply.outputs.apigw}} > .env
- name: 🔨 Build Project
run: |
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/predeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
TF-Apply:
name: 🏗️ Plan Infra
runs-on: ubuntu-latest
# https://stackoverflow.com/questions/59175332/using-output-from-a-previous-job-in-a-new-one-in-a-github-action
outputs:
apigw: ${{steps.APIGW.outputs.NEXT_PUBLIC_APIGW}}
steps:
- name: Check Out
uses: actions/checkout@v4
Expand Down Expand Up @@ -65,7 +68,7 @@ jobs:
- name: ⚗️ Write env variables
run: |
cd web
echo ${{steps.APIGW.outputs.APIGW}} > .env
echo ${{needs.TF-Apply.outputs.apigw}} > .env
- name: 🔨 Build Project
run: |
Expand Down

0 comments on commit c24a0c0

Please sign in to comment.