22 lines
674 B
YAML
22 lines
674 B
YAML
name: Test Gitea Secrets
|
|
on: [push]
|
|
|
|
jobs:
|
|
deploy-to-modal:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: gitea-modal-runner:latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Deploy worker pipeline to Modal
|
|
run: |
|
|
modal token set --token-id "$MODAL_TOKEN_ID" --token-secret "$MODAL_TOKEN_SECRET"
|
|
cd workspace/sprint_1_2/CODEBASE/deps/implementation
|
|
modal deploy test_worker.py
|
|
env:
|
|
# These are injected by Gitea Actions from the Repository Secrets
|
|
MODAL_TOKEN_ID: ${{ secrets.MODAL_KEY }}
|
|
MODAL_TOKEN_SECRET: ${{ secrets.MODAL_SECRET }} |