Skip to content

Commit

Permalink
Merge pull request #10 from OriginalByteMe/feature/modal_CICD
Browse files Browse the repository at this point in the history
Add CI/CD workflow for deploying Modal jobs
  • Loading branch information
OriginalByteMe authored Nov 17, 2023
2 parents a045aad + dd96728 commit ed0805c
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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@v2

- name: Install Python
uses: actions/setup-python@v2
with:
python-version: "3.10"

- name: Install Modal
run: |
python -m pip install --upgrade pip
pip install modal
- name: Deploy cutout generator job
run: |
cd app
modal deploy grounded_cutouts.py
- name: Deploy s3_handler job
run: |
cd app/s3_handler
modal deploy app.py

0 comments on commit ed0805c

Please sign in to comment.