Update main.yml #127
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 Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '14' | |
- name: Install Render CLI | |
run: | | |
curl -o render https://render.com/static/render-cli-linux | |
chmod +x render | |
sudo mv render /usr/local/bin/ | |
- name: Update Render Deployment | |
id: update | |
run: | | |
DEPLOYMENT_ID="43ca597" ./node_modules/.bin/render update $DEPLOYMENT_ID \ | |
--image atillah0/backend-final-4-app:latest \ | |
--env-file .env | |
env: | |
DEPLOYMENT_ID: ${{ secrets.RENDER_DEPLOYMENT_ID }} |