Skip to content

Commit

Permalink
Create Deploy_modal_ollama.yml
Browse files Browse the repository at this point in the history
add a CI/CD on push workflow for modal
  • Loading branch information
ProtoFaze authored Dec 4, 2024
1 parent bc77f64 commit 4190a5d
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/Deploy_modal_ollama.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI/CD

on:
push:
branches:
- main

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
env:
MODAL_TOKEN_ID: ${{ secrets.MODAL_TOKEN_ID }}
MODAL_TOKEN_SECRET: ${{ secrets.MODAL_TOKEN_SECRET }}

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.12.7"

- name: Install Modal
run: |
python -m pip install --upgrade pip
pip install modal
- name: Deploy job
run: |
cd ollama_backend
modal run ollama_backend.py
modal deploy ollama_backend.py

0 comments on commit 4190a5d

Please sign in to comment.