Skip to content

Commit

Permalink
wip: retry
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbira committed Sep 3, 2024
1 parent be47c00 commit 8b30e19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
tsuru app deploy -i ghcr.io/imperial/cpp-connect:latest -a cpp-connect
- name: Set database URL
run: |
tsuru app run "DATABASE_URL=postgres://\$PGUSER:\$PGPASSWORD@\$PGHOST:\$PGPORT/\$PGDATABASE && echo \$DATABASE_URL" -a cpp-connect | grep 'postgres://' | echo DATABASE_URL=$_
tsuru app run "DATABASE_URL=postgres://\$PGUSER:\$PGPASSWORD@\$PGHOST:\$PGPORT/\$PGDATABASE && echo \$DATABASE_URL" -a cpp-connect | grep "^postgres://" | xargs -I {} tsuru env set -a cpp-connect DATABSE_URL={}
- name: Run migrations
run: |
tsuru app run "npm exec prisma migrate deploy" -a cpp-connect
Expand Down

0 comments on commit 8b30e19

Please sign in to comment.