Skip to content

Commit 3d5a2dc

Browse files
committed
Add render.yaml
1 parent ac84c05 commit 3d5a2dc

2 files changed

Lines changed: 47 additions & 3 deletions

File tree

.github/workflows/build.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ jobs:
6666
continue-on-error: true
6767
run: |
6868
echo "github.ref_name: ${{ github.ref_name }}"
69-
echo "steps.version.outputs.tags: ${{ steps.version.outputs.tags }}"
70-
echo "tags1: ${{ inputs.dev != true && steps.version.outputs.tags || 'dev' }}"
71-
echo "tags2: ${{ inputs.tags }}"
69+
echo "tags1: ${{ inputs.dev == true && 'dev' || '' }}"
70+
echo "tags2: ${{ steps.version.outputs.tags }}"
71+
echo "tags3: ${{ inputs.tags }}"
7272
7373
- name: "Generate Docker Tags"
7474
id: tags

.github/workflows/render.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: "Render"
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "Version Tag"
8+
default: "latest"
9+
required: true
10+
11+
env:
12+
version: ${{ inputs.version || 'latest' }}
13+
14+
jobs:
15+
render:
16+
name: "Render"
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 5
19+
20+
#environment:
21+
# name: render
22+
# url: https://node-badges.onrender.com/
23+
24+
steps:
25+
- name: "Debug CTX github"
26+
if: ${{ !github.event.act }}
27+
continue-on-error: true
28+
env:
29+
GITHUB_CTX: ${{ toJSON(github) }}
30+
run: echo "$GITHUB_CTX"
31+
32+
- name: "Debug Variables"
33+
continue-on-error: true
34+
run: |
35+
echo "inputs.version: ${{ inputs.version }}"
36+
echo "env.version: ${{ env.version }}"
37+
echo "imgURL: ghcr.io/${{ github.repository }}:${{ env.version }}"
38+
39+
# https://render.com/docs/deploy-hooks#deploying-from-an-image-registry
40+
- name: "Render Deploy"
41+
uses: cssnr/web-request-action@v1
42+
with:
43+
url: ${{ secrets.RENDER_HOOK }}
44+
params: '{"imgURL": "ghcr.io/${{ github.repository }}:${{ env.version }}"}'

0 commit comments

Comments
 (0)