Skip to content

Commit

Permalink
Merge pull request #18 from Guysnacho/29-API-Gateway
Browse files Browse the repository at this point in the history
Fix cli env update potentially maybe
  • Loading branch information
Guysnacho authored Sep 23, 2024
2 parents f7ad6cd + dff28b6 commit ca17514
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@ jobs:
- run: echo ${{ steps.plan.outputs.stdout }}
- run: echo ${{ steps.plan.outputs.stderr }}
- run: echo ${{ steps.plan.outputs.exitcode }}
outputs:
apigw: terraform output -raw api-route
web-deploy:
name: 💫 Deploy
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
APIGW: ${{needs.TF-Apply.outputs.apigw}}
needs: ["TF-Apply"]
steps:
- name: Check Out
Expand All @@ -58,7 +61,7 @@ jobs:
- name: ⚗️ Write env variables
run: |
cd web
echo $(terraform output -raw api-route) > .env
echo NEXT_PUBLIC_APIGW=$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 @@ -32,12 +32,15 @@ jobs:
- run: echo ${{ steps.plan.outputs.stdout }}
- run: echo ${{ steps.plan.outputs.stderr }}
- run: echo ${{ steps.plan.outputs.exitcode }}
outputs:
apigw: terraform output -raw api-route
web-deploy:
name: 💫 Build
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
APIGW: ${{needs.TF-Apply.outputs.apigw}}
needs: ["TF-Apply"]
steps:
- name: Check Out
Expand All @@ -60,7 +63,7 @@ jobs:
- name: ⚗️ Write env variables
run: |
cd web
echo $(terraform output -raw api-route) > .env
echo NEXT_PUBLIC_APIGW=$APIGW > .env
- name: 🔨 Build Project
run: |
Expand Down

0 comments on commit ca17514

Please sign in to comment.