Midnight RAPTR Sandbox Redeploy #2
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: Midnight RAPTR Sandbox Redeploy | |
| on: | |
| schedule: | |
| # Runs at 00:00 UTC every day. | |
| - cron: '0 0 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| redeploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install doctl (DigitalOcean CLI) | |
| uses: digitalocean/action-doctl@v2 | |
| with: | |
| token: ${{ secrets.DO_API_TOKEN }} | |
| - name: Trigger App Platform Redeployment | |
| run: | | |
| echo "Triggering redeployment for RAPTR Sandbox" | |
| doctl app create-deployment ${{ secrets.DO_APP_ID }} | |
| echo "Redeployment triggered successfully! The container will now restart." |