-
Notifications
You must be signed in to change notification settings - Fork 252
35 lines (30 loc) · 919 Bytes
/
render-deploy.yml
File metadata and controls
35 lines (30 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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"