Backup Database #94
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Backup Database | |
on: | |
workflow_dispatch: | |
schedule: # 01:00 UTC | |
- cron: "0 1 * * *" | |
jobs: | |
backup: | |
name: Backup Database | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 1 | |
matrix: | |
environment: [development, staging, production] | |
environment: | |
name: ${{matrix.environment}} | |
concurrency: ${{matrix.environment}}_${{github.event.number}} | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Backup Database | |
id: db_backup | |
uses: ./.github/workflows/actions/database-backup | |
with: | |
environment: ${{matrix.environment}} | |
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }} |