Deploy Render #26
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: Deploy Render | |
| on: | |
| workflow_run: | |
| workflows: | |
| - Build Docker Image | |
| types: | |
| - completed | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: render-deploy | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| name: Trigger Render deploy hook | |
| runs-on: ubuntu-latest | |
| if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} | |
| env: | |
| RENDER_DEPLOY_HOOK_URL: ${{ secrets.RENDER_DEPLOY_HOOK_URL }} | |
| steps: | |
| - name: Skip Render deploy | |
| if: ${{ env.RENDER_DEPLOY_HOOK_URL == '' }} | |
| run: echo "RENDER_DEPLOY_HOOK_URL is not configured; skipping Render deploy." | |
| - name: Trigger Render deploy hook | |
| if: ${{ env.RENDER_DEPLOY_HOOK_URL != '' }} | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| curl --fail --silent --show-error --request POST "$RENDER_DEPLOY_HOOK_URL" |