Skip to content

Commit

Permalink
add grant user permission to db step
Browse files Browse the repository at this point in the history
  • Loading branch information
zoe-marie authored Apr 23, 2024
1 parent 0252aee commit 78febe0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/create-user-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,8 @@ jobs:
run: 'gcloud sql databases create ${{ steps.generate-db-id.outputs.number }} --instance=idp-postgres-db'
- name: 'create db user'
run: 'gcloud sql users create ${{ steps.generate-db-id.outputs.number }} --instance=idp-postgres-db --password=${{ steps.generate-db-pw.outputs.password }}'
- name: 'pg login to db'
run: 'gcloud sql connect idp-postgres-db --user=postgres'
- name: 'pg grant db user permission on db'
run: 'GRANT CONNECT ON DATABASE ${{ steps.generate-db-id.outputs.number }} TO ${{ steps.generate-db-id.outputs.number }};'

0 comments on commit 78febe0

Please sign in to comment.