Skip to content

Commit

Permalink
fix: preview deploy (#4023)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariojsnunes authored Dec 3, 2024
1 parent 52e1366 commit 492ebf7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/pr-preview-fly-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ jobs:
url: ${{ steps.deploy.outputs.url }}

env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
SUPABASE_DB_PASSWORD: ${{ secrets.PREVIEW_DB_PASSWORD }}
SUPABASE_PROJECT_ID: ${{ secrets.PREVIEW_PROJECT_ID }}
SUPABASE_ACCESS_TOKEN: ${{ secrets.preview.SUPABASE_ACCESS_TOKEN }}
SUPABASE_DB_PASSWORD: ${{ secrets.preview.PREVIEW_DB_PASSWORD }}
SUPABASE_PROJECT_ID: ${{ secrets.preview.PREVIEW_PROJECT_ID }}
steps:
- name: Get code
uses: actions/checkout@v4
Expand Down Expand Up @@ -73,11 +73,11 @@ jobs:

- name: Set Fly.io Secrets
env:
SUPABASE_API_URL: ${{ secrets.SUPABASE_API_URL }}
SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }}
FIREBASE_PROJECT_ID: ${{ secrets.FIREBASE_PROJECT_ID }}
FIREBASE_PRIVATE_KEY: ${{ secrets.FIREBASE_PRIVATE_KEY }}
FIREBASE_CLIENT_EMAIL: ${{ secrets.FIREBASE_CLIENT_EMAIL }}
SUPABASE_API_URL: ${{ secrets.preview.SUPABASE_API_URL }}
SUPABASE_KEY: ${{ secrets.preview.SUPABASE_KEY }}
FIREBASE_PROJECT_ID: ${{ secrets.preview.FIREBASE_PROJECT_ID }}
FIREBASE_PRIVATE_KEY: ${{ secrets.preview.FIREBASE_PRIVATE_KEY }}
FIREBASE_CLIENT_EMAIL: ${{ secrets.preview.FIREBASE_CLIENT_EMAIL }}
FLY_APP_NAME: community-platform-pr-${{ github.event.number }}
run: |
fly -a $FLY_APP_NAME secrets set SUPABASE_API_URL=$SUPABASE_API_URL SUPABASE_KEY=$SUPABASE_KEY FIREBASE_PROJECT_ID=$FIREBASE_PROJECT_ID FIREBASE_PRIVATE_KEY="$FIREBASE_PRIVATE_KEY" FIREBASE_CLIENT_EMAIL=$FIREBASE_CLIENT_EMAIL

0 comments on commit 492ebf7

Please sign in to comment.