Restart DB #890
This file contains hidden or 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: "Restart DB" | |
| on: | |
| schedule: | |
| - cron: "0 0/2 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| ducksmanager-daily: | |
| runs-on: ubuntu-latest | |
| environment: production | |
| env: | |
| REMOTE_ROOT: apps/dm | |
| PRODUCTION_SSH_HOST: ${{ secrets.PRODUCTION_SSH_HOST }} | |
| PRODUCTION_SSH_USER: ${{ secrets.PRODUCTION_SSH_USER }} | |
| PRODUCTION_SSH_KEY: ${{ secrets.PRODUCTION_SSH_KEY }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| lfs: false | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9.8.0 | |
| - name: Use Node.js 22 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| run: | | |
| pnpm -r i | |
| - name: Restart DB | |
| timeout-minutes: 5 | |
| run: | | |
| pnpm -r -F '~prisma-schemas' prod:deploy |