Skip to content

Commit e7e654a

Browse files
committed
Add ref to Hook
1 parent 364678d commit e7e654a

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/render.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: "Render"
22

33
on:
4+
push:
45
workflow_call:
56
#inputs:
67
# version:
@@ -51,12 +52,22 @@ jobs:
5152
run: |
5253
echo "env.version: ${{ env.version }}"
5354
echo "imgURL: ghcr.io/${{ github.repository }}:${{ env.version }}"
55+
echo "ref: ${{ env.version }}"
56+
57+
## https://render.com/docs/deploy-hooks#deploying-from-an-image-registry
58+
#- name: "Render Deploy"
59+
# uses: cssnr/web-request-action@v1
60+
# env:
61+
# version: ${{ env.version == 'master' && 'latest' || env.version }}
62+
# with:
63+
# url: ${{ secrets.RENDER_HOOK }}
64+
# params: '{"imgURL": "ghcr.io/${{ github.repository }}:${{ env.version }}"}'
5465

55-
# https://render.com/docs/deploy-hooks#deploying-from-an-image-registry
5666
- name: "Render Deploy"
5767
uses: cssnr/web-request-action@v1
5868
env:
5969
version: ${{ env.version == 'master' && 'latest' || env.version }}
6070
with:
6171
url: ${{ secrets.RENDER_HOOK }}
62-
params: '{"imgURL": "ghcr.io/${{ github.repository }}:${{ env.version }}"}'
72+
params: |
73+
ref: ${{ env.version }}

render.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ services:
22
- type: web
33
name: node-badges
44
plan: free
5-
previews:
6-
generation: automatic
75
runtime: docker
86
repo: https://github.com/smashedr/node-badges
97
autoDeployTrigger: off

0 commit comments

Comments
 (0)