Files
Lumina-MSK/.gitea/workflows/trigger_modal_triton.yaml
DatTT127 57a8bac1be
Some checks failed
Backend ECR Deployment / build-and-push (push) Has been cancelled
Backend ECR Deployment / notify-deploy (push) Has been cancelled
Backend Modal Build / notify-deploy (push) Has been cancelled
Backend Modal Build / Build & Push via Modal (push) Has been cancelled
test_workflow
2026-07-18 17:48:19 +07:00

29 lines
947 B
YAML

# What is the purpose of this workflows
# for a modal GPU instance that hosting the CV model's on Nvidia Triton
name: Triton Modal Trigger
on: workflow_dispatch # set to on [push] for check after each code push what happens
jobs:
deploy-to-modal:
runs-on: ubuntu-latest
container:
image: gitea-modal-runner:latest # where build the code
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
sparse-checkout: |
workspace/sprint_1_2/CODEBASE/infra/implementation/triton_run/*
sparse-checkout-cone-mode: false
- name: Deploy Triton model to Modal
run: |
echo "Deploying Triton..."
cd workspace/sprint_1_2/CODEBASE/infra/implementation/triton_run
modal deploy modal_triton.py
env:
MODAL_TOKEN_ID: ${{ secrets.MODAL_KEY }}
MODAL_TOKEN_SECRET: ${{ secrets.MODAL_SECRET }}