Files
Lumina-MSK/.gitea/workflows/test_secret.yaml
DatTT127 bbdc205be2
Some checks failed
Test Gitea Secrets / deploy-to-modal (push) Failing after 18s
update_again
2026-07-17 00:22:57 +07:00

35 lines
1.2 KiB
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: Debug Modal Credentials
run: |
run: |
echo "DEBUG: Token ID is: '${MODAL_TOKEN_ID}'"
echo "DEBUG: Token ID length is: ${#MODAL_TOKEN_ID}"
# Use 'cut' to get the first 5 characters safely
FIRST_5=$(echo "$MODAL_TOKEN_ID" | cut -c1-5)
echo "DEBUG: First 5 chars are: '$FIRST_5'"
env:
# This maps the Gitea Repository Secret to an Environment Variable
MODAL_TOKEN_ID: ${{ secrets.MODAL_KEY }}
MODAL_TOKEN_SECRET: ${{ secrets.MODAL_SECRET }}
- 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:
# This maps the Gitea Repository Secret to an Environment Variable
MODAL_TOKEN_ID: ${{ secrets.MODAL_KEY }}
MODAL_TOKEN_SECRET: ${{ secrets.MODAL_SECRET }}