File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 }}"}'
You can’t perform that action at this time.
0 commit comments