fix: update sync scripts to sync staging and prod separately

This commit is contained in:
zkldi
2022-05-02 19:34:34 +01:00
parent 7e6e20e2da
commit f02fe6d568
+2 -2
View File
@@ -45,7 +45,7 @@ jobs:
host: ${{ secrets.TACHI_HOST }}
username: tachi
key: ${{ secrets.TACHI_KEY }}
script: tachi-database-sync
script: SHOULD_SYNC_STAGING=1 tachi-database-sync
- name: Sync Live Database
if: github.ref == 'refs/heads/production'
uses: appleboy/ssh-action@1a8b3784eaa665f677fa114edd5683bb6a6bfaa8
@@ -53,4 +53,4 @@ jobs:
host: ${{ secrets.TACHI_HOST }}
username: tachi
key: ${{ secrets.TACHI_KEY }}
script: tachi-database-sync
script: SHOULD_SYNC_LIVE=1 tachi-database-sync