-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #183 from technologiestiftung/staging
staging to master
- Loading branch information
Showing
140 changed files
with
98,312 additions
and
23,673 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# The values below are taken from the command `supabase start` | ||
# WARNING: Don't use production URLs or tokens here | ||
SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0 | ||
SUPABASE_URL=http://localhost:54321 | ||
SUPABASE_SERVICE_ROLE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU | ||
SUPABASE_MAX_ROWS=1000 | ||
|
||
# auth0.com | ||
# also neded for integration tests | ||
# You should have a separate API for production and development/testing | ||
# Using your production API from auth0.com won't do any harm | ||
# since these values are only used to obtain JWT credentials | ||
jwksuri=https://your-fancy-tenant.eu.auth0.com/.well-known/jwks.json | ||
audience=your-audience | ||
issuer=https://your-fancy-tenant.eu.auth0.com/ | ||
|
||
jwt_secret= | ||
client_secret= | ||
client_id= | ||
# this is for later usage with vscode rest-client | ||
token= |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module.exports = { | ||
env: { | ||
es2021: true, | ||
node: true, | ||
"jest/globals": true, | ||
}, | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:jest/recommended", | ||
"prettier", | ||
], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
ecmaVersion: "latest", | ||
sourceType: "module", | ||
}, | ||
plugins: ["@typescript-eslint", "jest"], | ||
rules: { | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ varsIgnorePattern: "^_", argsIgnorePattern: "^_" }, | ||
], | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -1 +1 @@ | ||
@fabianmoronzirfas | ||
* @ff6347 |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Deploy Migrations to Production | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
environment: production | ||
runs-on: ubuntu-22.04 | ||
if: "!contains(github.event.head_commit.message, 'skip ci')" | ||
|
||
env: | ||
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} | ||
SUPABASE_DB_PASSWORD: ${{ secrets.DB_PASSWORD }} | ||
PRODUCTION_PROJECT_ID: ${{ secrets.PROJECT_ID }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: supabase/setup-cli@v1 | ||
with: | ||
version: 1.36.6 | ||
|
||
- run: | | ||
supabase link --project-ref $PRODUCTION_PROJECT_ID | ||
supabase db push |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Deploy Migrations to Staging | ||
|
||
on: | ||
push: | ||
branches: | ||
- staging | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
environment: staging | ||
runs-on: ubuntu-22.04 | ||
if: "!contains(github.event.head_commit.message, 'skip ci')" | ||
|
||
env: | ||
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} | ||
SUPABASE_DB_PASSWORD: ${{ secrets.DB_PASSWORD }} | ||
STAGING_PROJECT_ID: ${{ secrets.PROJECT_ID }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: supabase/setup-cli@v1 | ||
with: | ||
version: 1.36.6 | ||
|
||
- run: | | ||
supabase link --project-ref $STAGING_PROJECT_ID | ||
supabase db push |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.
f8c4a21
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
giessdenkiez-de-postgres-api – ./
giessdenkiez-de-postgres-api-technologiestiftung1.vercel.app
giessdenkiez-de-postgres-api.vercel.app
api.giessdenkiez.de
giessdenkiez-de-postgres-api-git-master-technologiestiftung1.vercel.app