Deploying via Render CLI #3
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
name: Render CLI Deploy | |
run-name: Deploying via Render CLI | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
Deploy-Render: | |
runs-on: ubuntu-latest | |
steps: | |
# Downloads the Render CLI binary and adds it to the PATH. | |
# To prevent breaking changes in CI/CD, we pin to a | |
# specific CLI version (in this case 1.1.0). | |
- name: Install Render CLI | |
run: | | |
curl -L https://github.com/render-oss/cli/releases/download/v1.1.0/cli_1.1.0_linux_amd64.zip -o render.zip | |
unzip render.zip | |
sudo mv cli_v1.1.0 /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 |