RVC-Project / Retrieval-based-Voice-Conversion

in preparation...
MIT License
294 stars 45 forks source link

Add GitHub Actions workflow for Docker image #32

Closed Danand closed 4 months ago

Danand commented 5 months ago

Hi!

I've created a GitHub Actions workflow for building and pushing the RVC API Docker image. I originally did this for myself, but it might be helpful to others as well.

Additionally, I've optimized the Docker image size, reducing it from 6.19GB to 4.82GB, as it was barely fitting within the limitations of GitHub-hosted Actions runners. 😅

Requirements for this to work:

  1. Create GitHub PAT with write:packages scope.
  2. Add GitHub PAT to secrets of repository:
    1. Got to the settings.
    2. Click New repository secret.
    3. Add GitHub PAT as Secret.
    4. Enter _GITHUB_PAT as Name.
  3. Push Git tags to tigger workflow.
Tps-F commented 4 months ago

LGTM!