Skip to content

Commit

Permalink
Merge pull request #16 from ChouquetteCorp/fix/ci
Browse files Browse the repository at this point in the history
Fix/ci
  • Loading branch information
BilelJegham authored Feb 21, 2024
2 parents 4f227bf + df9b4be commit b7f0611
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/getmatchs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,18 @@ jobs:
sudo apt-get install -y postgresql-15
- name: Add matchs.sql to database Staging
run: |
psql -h "db.$STAGING_PROJECT_ID.supabase.co" -p 5432 -d postgres -U postgres -f matchs.football.sql
psql -h "db.$STAGING_PROJECT_ID.supabase.co" -p 5432 -d postgres -U postgres -f matchs.sql
psql -h "$HOST" -p 5432 -d postgres -U "postgres.$STAGING_PROJECT_ID" -f matchs.football.sql
psql -h "$HOST" -p 5432 -d postgres -U "postgres.$STAGING_PROJECT_ID" -f matchs.sql
env:
PGPASSWORD: ${{ secrets.STAGING_DB_PASSWORD }}
HOST: ${{ secrets.STAGING_HOST }}
STAGING_PROJECT_ID: ${{ secrets.STAGING_PROJECT_ID }}

- name: Add matchs.sql to database Prod
run: |
psql -h "db.$PRODUCTION_PROJECT_ID.supabase.co" -p 5432 -d postgres -U postgres -f matchs.football.sql
psql -h "db.$PRODUCTION_PROJECT_ID.supabase.co" -p 5432 -d postgres -U postgres -f matchs.sql
psql -h "$HOST" -p 5432 -d postgres -U "postgres.$PRODUCTION_PROJECT_ID" -f matchs.football.sql
psql -h "$HOST" -p 5432 -d postgres -U "postgres.$PRODUCTION_PROJECT_ID" -f matchs.sql
env:
PGPASSWORD: ${{ secrets.PRODUCTION_DB_PASSWORD }}
HOST: ${{ secrets.PRODUCTION_HOST }}
PRODUCTION_PROJECT_ID: ${{ secrets.PRODUCTION_PROJECT_ID }}

0 comments on commit b7f0611

Please sign in to comment.