-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add ferry DB restore workflow and update user DB backup script
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Ferry DB Snapshot | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
backup: | ||
runs-on: self-hosted | ||
steps: | ||
- name: Ferry DB Restore | ||
run: | | ||
cd /home/app/infra/db | ||
git pull | ||
bash restore-ferry.sh |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,5 @@ jobs: | |
- name: Backup User DB | ||
run: | | ||
cd /home/app/infra/db | ||
git pull | ||
bash cron_script.sh |