-
-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2a2a0dc
commit e8a3dde
Showing
1 changed file
with
5 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -366,29 +366,15 @@ jobs: | |
name: Set Supabase Secrets | ||
command: flyctl -a << parameters.FLY_APP_NAME >> secrets set SUPABASE_API_URL=$SUPABASE_API_URL SUPABASE_KEY=$SUPABASE_KEY SUPABASE_SERVICE_ROLE_KEY=$SUPABASE_SERVICE_ROLE_KEY DISCORD_WEBHOOK_URL=$DISCORD_WEBHOOK_URL RESEND_API_KEY=$RESEND_API_KEY | ||
deploy-supabase: | ||
machine: | ||
image: ubuntu-2004:2023.07.1 # Or a more recent Ubuntu image | ||
docker: | ||
- image: cimg/node:20.7.0 | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: '.' | ||
- run: | ||
name: Install Node.js | ||
command: | | ||
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash - | ||
sudo apt-get install -y nodejs | ||
- run: | ||
name: Install Supabase CLI | ||
command: npm install -g [email protected] | ||
- run: | ||
name: Supabase Login | ||
command: npx [email protected] login --token $SUPABASE_ACCESS_TOKEN | ||
- run: | ||
name: Supabase DB Push | ||
command: (yes || true) | npx [email protected] db push --db-url $SUPABASE_DB_URL --debug | ||
- run: | ||
name: Deploy Supabase Functions | ||
command: npx [email protected] functions deploy --no-verify-jwt | ||
- run: npx [email protected] login --token $SUPABASE_ACCESS_TOKEN | ||
- run: (yes || true) | npx [email protected] db push --db-url $SUPABASE_DB_URL --debug | ||
# - run: npx [email protected] functions deploy --no-verify-jwt | ||
# Run cypress e2e tests on chrome | ||
test_e2e: | ||
docker: *docker | ||
|