ci: deploy music-flamingo to Modal from GitHub Actions
Summary
Item 1 of recoupable/app#2060.
- Adds
.github/workflows/deploy-modal.yml: on push tomaintouchingmodal/**(orworkflow_dispatch), installs Modal on Python 3.11 and runsmodal deploy modal/serve_music_flamingo.pyagainst theshared-78369workspace,mainenvironment. - Auth comes from the
MODAL_TOKEN_ID/MODAL_TOKEN_SECRETrepository secrets (added 2026-09-04). concurrency: modal-deploywithout cancel-in-progress so a long image build (model weights are baked in) is never killed by a second push.modal/README.mdnow describes the CI deploy; laptop deploys are called out as the wrong path.
Merging this PR triggers the first deploy into shared-78369 (the workflow file is on the path filter). Today that workspace has zero apps and its health URL 404s; prod still points at sidney-78147. The URL swap is a separate PR that merges only after this deploy is verified.
Verification plan
There is no pre-merge way to execute a push-to-main workflow, and workflow_dispatch only appears once the file is on main. Pre-merge: YAML parses (prettier) and the shape matches Modal's continuous-deployment guide. Post-merge, on the merge commit's Actions run:
- run succeeds
-
GET https://shared-78369--music-flamingo-musicflamingo-health.modal.runreturns{"status":"ok","model":"nvidia/music-flamingo-2601-hf"} -
POSTto the newgenerateURL with a real fixture returns the same shape as the old URL
Results will be posted as a comment here.
🤖 Generated with Claude Code
https://claude.ai/code/session_01WzdC6dwcNjQrNTQEcBsmRz
Summary by cubic
Implements item 1 of recoupable/app#2060: a GitHub Actions workflow deploys music-flamingo to the shared-78369 Modal workspace on pushes to main touching modal/**, replacing the manual laptop deploy. Merging this PR triggers the first deploy; the new health URL 404s until the run finishes, and prod traffic stays on sidney-78147 until the follow-up URL-swap PR merges.
Workflow
- Runs
modal deploy modal/serve_music_flamingo.pyon Python 3.11 against theshared-78369workspace,mainenvironment, using theMODAL_TOKEN_ID/MODAL_TOKEN_SECRETrepository secrets. - Supports manual runs from the Actions tab via
workflow_dispatch. - Uses
concurrency: modal-deploywithout cancel-in-progress so a second push can’t kill a long image build.
Docs
modal/README.mdnow documents the CI deploy and calls out laptop deploys as the wrong path.