Skip to content

add initial create db step #13

add initial create db step

add initial create db step #13

name: Create User DB
on:
push:
branches:
- feat/cloudsql-gh-action
workflow_dispatch:
jobs:
create-db:
runs-on: ubuntu-latest
steps:
- id: 'auth'
name: 'auth'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
- id: 'Set_up_Cloud_SDK'
name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'
- name: 'Use gcloud CLI to create DB'
run: 'gcloud sql databases create testDB3 --instance=idp-postgres-db'