Skip to content

Commit

Permalink
Create database before creating user
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky committed Apr 3, 2024
1 parent cdf2daa commit b1196d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ jobs:
pg_ctl start
# sudo systemctl start postgresql.service
pg_isready
# createdb --owner=$PGUSERNAME $PGDATABASE
# psql --host "$PGHOST" --command="CREATE USER $PGUSERNAME PASSWORD '$PGPASSWORD'" --command="\du"
createdb $PGDATABASE
psql --host "$PGHOST" --command="CREATE USER $PGUSERNAME PASSWORD '$PGPASSWORD'" --command="\du"
psql --host "$PGHOST" --command="GRANT ALL PRIVILEGES ON DATABASE $PGDATABASE TO $PGUSERNAME" --command="\l"
# - name: Create database user
# run: |
# sudo -u postgres psql --command="CREATE USER $PGUSERNAME PASSWORD '$PGPASSWORD'" --command="\du"
Expand Down

0 comments on commit b1196d2

Please sign in to comment.