Skip to content

Commit

Permalink
chore: Update secrets configuration and copy secrets in frontend_depl…
Browse files Browse the repository at this point in the history
…oy.yml
  • Loading branch information
Diegogtz03 committed May 18, 2024
1 parent 89c6d70 commit 617bf35
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions .github/workflows/frontend_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,20 +100,20 @@ jobs:

- name: Check secrets
run: |
echo $API_ROOT_ROUTE
echo $DB_URL
echo $NEXTAUTH_URL
echo $NEXTAUTH_SECRET
echo $GITHUB_ID
echo $GITHUB_SECRET
echo $GOOGLE_CLIENT_ID
echo $GOOGLE_CLIENT_SECRET
echo $EMAIL_SERVER_HOST
echo $EMAIL_SERVER_PORT
echo $EMAIL_SERVER_USER
echo $EMAIL_SERVER_PASSWORD
echo $EMAIL_FROM
echo $SENDGRID_API_KEY
echo $API_ROOT_ROUTE >> secrets.txt
echo $DB_URL >> secrets.txt
echo $NEXTAUTH_URL >> secrets.txt
echo $NEXTAUTH_SECRET >> secrets.txt
echo $GITHUB_ID >> secrets.txt
echo $GITHUB_SECRET >> secrets.txt
echo $GOOGLE_CLIENT_ID >> secrets.txt
echo $GOOGLE_CLIENT_SECRET >> secrets.txt
echo $EMAIL_SERVER_HOST >> secrets.txt
echo $EMAIL_SERVER_PORT >> secrets.txt
echo $EMAIL_SERVER_USER >> secrets.txt
echo $EMAIL_SERVER_PASSWORD >> secrets.txt
echo $EMAIL_FROM >> secrets.txt
echo $SENDGRID_API_KEY >> secrets.txt
env:
API_ROOT_ROUTE: ${{ secrets.API_ROOT_ROUTE }}
DB_URL: ${{ secrets.DB_URL }}
Expand All @@ -130,6 +130,9 @@ jobs:
EMAIL_FROM: ${{ secrets.EMAIL_FROM }}
SENDGRID_API_KEY: ${{ secrets.SENDGRID_API_KEY }}

- name: Run tmate
uses: mxschmitt/action-tmate@v2

- name: Copy Secrets
run: |
sst secret set APIRootRoute $API_ROOT_ROUTE --stage dev
Expand Down

0 comments on commit 617bf35

Please sign in to comment.