-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60f4ce1
commit c32fa7e
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |