Update main.yml #124
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: npm install render-cli | |
- name: Update Render Deployment | |
id: update | |
run: | | |
DEPLOYMENT_ID="43ca597" render update $DEPLOYMENT_ID \ | |
--image atillah0/backend-final-4-app:latest \ | |
--env-file .env | |
env: | |
DEPLOYMENT_ID: ${{ secrets.RENDER_DEPLOYMENT_ID }} |