Skip to content

Commit 4e05054

Browse files
authored
Merge pull request #2828 from abdoemr11/patch-2
Update Render 11.11
2 parents 979e224 + 74d8cf3 commit 4e05054

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/content/11/en/part11c.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,18 @@ Set up the action to your workflow and ensure that every commit that pass all th
372372
```bash
373373
https://dashboard.render.com/web/srv-crandomcharachtershere
374374
```
375+
Alternatively you could just use [Render Deploy Hook](https://render.com/docs/deploy-hooks) which is a private url to trigger the deployment. You can get it from your app settings ![fsorender1](https://user-images.githubusercontent.com/47830671/230722899-1ebb414e-ae1e-4a5e-a7b8-f376c4f1ca4d.png).
376+
DON'T USE the plain url in your pipeline. Instead create github secrets for your key and service id: ![fsorender2](https://user-images.githubusercontent.com/47830671/230723138-77d027be-3162-4697-987e-b654bc710187.png)
377+
Then you can use them like this:
378+
``` bash
379+
main:
380+
name: Deploy to Render
381+
runs-on: ubuntu-latest
382+
steps:
383+
- name: Trigger deployment
384+
run: curl https://api.render.com/deploy/srv-${{ secrets.RENDER_SERVICE_ID }}?key=${{ secrets.RENDER_API_KEY }}
385+
```
386+
375387

376388
The deployment takes some time. See the events tab of the Render dashboard to see when the new deployment is ready:
377389

0 commit comments

Comments
 (0)