Sync prod > preprod #16
Workflow file for this run
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: Sync databases | |
on: | |
workflow_dispatch: | |
env: | |
DUPLICATE_API_TOKEN: ${{ secrets.DUPLICATE_API_TOKEN }} | |
DUPLICATE_SOURCE_APP: ${{ secrets.DUPLICATE_SOURCE_APP }} | |
PREPROD_DATABASE_URL: ${{ secrets.PREPROD_DATABASE_URL }} | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
sync_prod_to_preprod: | |
name: Sync production databsse to preprod | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Scalingo CLI | |
run: | | |
curl -O https://cli-dl.scalingo.com/install && bash install | |
- name: Execute sync script in one-off container | |
run: | | |
./scripts/restore_prod_to_preprod.sh |