Regular Server Restart #1031
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: Regular Server Restart | |
on: | |
schedule: | |
- cron: "0 */12 * * *" | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
jobs: | |
deploy: | |
environment: | |
name: production | |
url: https://leftbookclub.com | |
runs-on: ubuntu-latest | |
steps: | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- run: flyctl apps restart lbc-production | |
- run: flyctl apps restart lbc-worker-production |