Skip to content

modified main.yaml and requirements.txt files #2

modified main.yaml and requirements.txt files

modified main.yaml and requirements.txt files #2

Workflow file for this run

name: Deploy to Render
on:
push:
branches:
- main # Adjust this branch as needed
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11 # Replace with your Python version
- name: Install dependencies
run: pip install -r requirements.txt # Replace with your requirements file
- name: Build Docker image
run: |
docker build -t taxi_trip_fare_predictor:latest .
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker tag taxi_trip_fare_predictor:latest sayam2801/taxi_trip_fare_predictor:latest
docker push sayam2801/taxi_trip_fare_predictor:latest
- name: Deploy to Render
run: |
curl -X POST -H "Authorization: Bearer ${{ secrets.RENDER_TOKEN }}" \
-H "Content-Type: application/json" \
--data '{
"image": "taxi_trip_fare_predictor:latest",
"serviceId": "srv-cksp329f3gac73dlpeeg" # Replace with your Render service ID
}' \
https://api.render.com/v1/deploys