Skip to content

Update main.yml

Update main.yml #127

Workflow file for this run

# 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 }}