ci: deploy music-flamingo to Modal from GitHub Actions

Merged
SW
3mo ago
+52-5

Summary

Item 1 of recoupable/app#2060.

  • Adds .github/workflows/deploy-modal.yml: on push to main touching modal/** (or workflow_dispatch), installs Modal on Python 3.11 and runs modal deploy modal/serve_music_flamingo.py against the shared-78369 workspace, main environment.
  • Auth comes from the MODAL_TOKEN_ID / MODAL_TOKEN_SECRET repository secrets (added 2026-09-04).
  • concurrency: modal-deploy without cancel-in-progress so a long image build (model weights are baked in) is never killed by a second push.
  • modal/README.md now 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.run returns {"status":"ok","model":"nvidia/music-flamingo-2601-hf"}
  • POST to the new generate URL 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.py on Python 3.11 against the shared-78369 workspace, main environment, using the MODAL_TOKEN_ID / MODAL_TOKEN_SECRET repository secrets.
  • Supports manual runs from the Actions tab via workflow_dispatch.
  • Uses concurrency: modal-deploy without cancel-in-progress so a second push can’t kill a long image build.

Docs

  • modal/README.md now documents the CI deploy and calls out laptop deploys as the wrong path.