Update main.yml #118
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
# main.yaml | |
name: Build, Test, and Update Data | |
on: | |
push: | |
branches: ['main'] | |
jobs: | |
update_deployment: | |
name: Update Render Deployment | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
- name: Install Render CLI | |
run: | | |
curl -fsSL https://api.github.com/repos/render/cli/releases/latest/download/render-cli-linux-amd64.zip | tar -xf - | |
mv render-cli /usr/local/bin | |
- name: Login to Render | |
run: render login | |
- name: Update Render Deployment | |
id: update | |
run: | | |
render update <DEPLOYMENT_ID> \ | |
--image atillah0/backend-final-4-app:latest \ | |
--env-file .env | |
env: | |
DEPLOYMENT_ID: ${{ secrets.RENDER_DEPLOYMENT_ID }} |