Skip to content

Commit

Permalink
Add production database update to the release workflow. This introduc…
Browse files Browse the repository at this point in the history
…es a bug; filed #41
  • Loading branch information
rukmal committed Nov 3, 2022
1 parent c6c3058 commit 1c77f83
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ jobs:
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 }}
Expand All @@ -73,8 +71,25 @@ jobs:
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 }}
update-production-database:
name: Update Production Azure Database
needs: update-version
runs-on: ubuntu-22.04
environment: Production
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Update Azure production database
run: |
cat ./db/schema/*.sql | mysql --host=$HOST --port=$PORT --user=$USER --password=$PASSWORD
env:
HOST: ${{ secrets.DB_HOST }}
Expand Down

0 comments on commit 1c77f83

Please sign in to comment.