This commit is contained in:
@@ -4,9 +4,8 @@ on: [push]
|
|||||||
jobs:
|
jobs:
|
||||||
deploy-to-modal:
|
deploy-to-modal:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Use a standard python image so you don't have to pre-build anything
|
|
||||||
container:
|
container:
|
||||||
image: gitea-modal-runner:latest
|
image: gitea-modal-runner:latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@@ -17,5 +16,6 @@ jobs:
|
|||||||
cd workspace/sprint_1_2/CODEBASE/deps/implementation
|
cd workspace/sprint_1_2/CODEBASE/deps/implementation
|
||||||
modal deploy test_worker.py
|
modal deploy test_worker.py
|
||||||
env:
|
env:
|
||||||
|
# These are injected by Gitea Actions from the Repository Secrets
|
||||||
MODAL_TOKEN_ID: ${{ secrets.MODAL_KEY }}
|
MODAL_TOKEN_ID: ${{ secrets.MODAL_KEY }}
|
||||||
MODAL_TOKEN_SECRET: ${{ secrets.MODAL_SECRET }}
|
MODAL_TOKEN_SECRET: ${{ secrets.MODAL_SECRET }}
|
||||||
@@ -26,5 +26,3 @@ COPY --from=builder /root/.local /root/.local
|
|||||||
# Ensure the local bin is in the PATH
|
# Ensure the local bin is in the PATH
|
||||||
ENV PATH=/root/.local/bin:$PATH
|
ENV PATH=/root/.local/bin:$PATH
|
||||||
|
|
||||||
# WORKDIR /workspace
|
|
||||||
CMD [ "bash" ]
|
|
||||||
Reference in New Issue
Block a user