Skip to content

Commit

Permalink
Create render-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenBarlow authored Dec 20, 2024
1 parent 60f4ce1 commit c32fa7e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/render-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Render CLI Deploy
run-name: Deploying via Render CLI
on: [push]
jobs:
Deploy-Render:
runs-on: ubuntu-latest
steps:
- name: Install Render CLI
# Download the Render CLI binary and add it to PATH
# Note that we install a specific CLI version to prevent breaking changes
run: |
curl -L https://github.com/render-oss/cli/releases/download/v0.8.6/cli_0.8.6_linux_amd64.zip -o render.zip
unzip render.zip
sudo mv cli_v0.8.6 /usr/local/bin/render
- name: Authorize Render CLI and trigger deploy
env:
RENDER_API_KEY: ${{ secrets.RENDER_API_KEY }}
CI: true
run: |
render login --output json
render deploys create ${{ secrets.RENDER_SERVICE_ID }} --output json --confirm

0 comments on commit c32fa7e

Please sign in to comment.