Skip to content

Commit

Permalink
add db user creation step
Browse files Browse the repository at this point in the history
  • Loading branch information
zoe-marie authored Apr 23, 2024
1 parent 3f3e3ef commit 17872f5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/create-user-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:
with:
min: 111111
max: 999999
- id: 'generate-db-pw'
uses: aammirmirza/RandomPasswordGenerator@v1.1
with:
length: 15
- id: 'auth'
name: 'auth'
uses: 'google-github-actions/auth@v2'
Expand All @@ -28,3 +32,5 @@ jobs:
uses: 'google-github-actions/setup-gcloud@v2'
- name: 'Use gcloud CLI to create DB'
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 }}

0 comments on commit 17872f5

Please sign in to comment.