Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 8 additions & 17 deletions .github/workflows/deploy-to-cloudrun.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,19 @@
name: Deploy to Cloud Run

# The `audio-separator` Cloud Run GPU service (us-east4) was SHUT DOWN on
# 2026-10-01 (GCP cost cut) — prod karaoke-gen jobs never used it (they run
# separation in the audio-separation-job GPU Cloud Run Job). Automatic deploys
# on PyPI publish / Dockerfile changes are disabled so releases don't burn
# Cloud Build time or fail against a missing service. To bring it back, first
# re-create the service + repo via karaoke-gen Pulumi
# (`pulumi config set audioSeparatorServiceEnabled true`, see karaoke-gen
# docs/GCP-COST-OPTIMIZATION.md), then run this workflow manually.
on:
# Deploy when a new PyPI release is published
workflow_run:
workflows: ["Publish to PyPI"]
types: [completed]

# Deploy on changes to Dockerfile or Cloud Run server
push:
branches: [main]
paths:
- "Dockerfile.cloudrun"
- "audio_separator/remote/deploy_cloudrun.py"
- "audio_separator/ensemble_presets.json"
- "cloudbuild.yaml"

# Manual deployment
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
# Only run on successful PyPI publish (or push/manual triggers)
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}

permissions:
contents: read
Expand Down
Loading