diff --git a/.gitea/workflows/test_trigger_modal_triton.yaml b/.gitea/workflows/test_trigger_modal_triton.yaml new file mode 100644 index 0000000..df31b74 --- /dev/null +++ b/.gitea/workflows/test_trigger_modal_triton.yaml @@ -0,0 +1,26 @@ +# 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: [push] + +jobs: + deploy-to-modal: + runs-on: ubuntu-latest + container: + image: gitea-modal-runner:latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + sparse-checkout: | + workspace/sprint_1_2/CODEBASE/infra/implementation/triton_run + + - name: Deploy Triton model to Modal + run: | + echo "Triggering Triton deployment..." + cd workspace/sprint_1_2/CODEBASE/infra/implementation/triton_run + modal deploy triton_server.py + env: + MODAL_TOKEN_ID: ${{ secrets.MODAL_KEY }} + MODAL_TOKEN_SECRET: ${{ secrets.MODAL_SECRET }} \ No newline at end of file