Skip to content

Commit

Permalink
Update release workflow to deploy to new staging db
Browse files Browse the repository at this point in the history
  • Loading branch information
rukmal committed Oct 30, 2022
1 parent d532ce3 commit f2b57a8
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,27 @@ jobs:
USER: ${{ secrets.DB_USER }}
PASSWORD: ${{ secrets.DB_PASSWORD }}
DATABASE: ${{ secrets.DB_DATABASE }}
update-new-staging-db:
name: Update new Azure staging database
needs: update-version
runs-on: ubuntu-22.04
environment: Stage
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Update Azure staging database
run: |
ls
pwd
cat ./db/schema/*.sql | mysql --host=$HOST --port=$PORT --user=$USER --password=$PASSWORD
env:
HOST: ${{ secrets.DB_HOST }}
PORT: ${{ secrets.DB_PORT }}
USER: ${{ secrets.DB_USER }}
PASSWORD: ${{ secrets.DB_PASSWORD }}
DATABASE: ${{ secrets.DB_DATABASE }}
push-api-client:
name: Publish GraphQL API Client
needs: update-staging-db
Expand Down

0 comments on commit f2b57a8

Please sign in to comment.