[PR #32] [MERGED] Add GitHub Actions workflow for Docker image #55

Closed
opened 2026-10-20 09:53:32 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion/pull/32
Author: @rei-koshka
Created: 6/13/2024
Status: ✅ Merged
Merged: 7/8/2024
Merged by: @Tps-F

Base: develop ← Head: feature/docker-push-github


📝 Commits (10+)

  • 44361a6 Add GitHub Actions workflow for pushing Docker images
  • faa8ade Fix invalid case of Docker image tag
  • 2c10d4d Optimize storage memory consumed by LFS layer
  • b1c9bbd Force workflow to run ubuntu-22.04
  • d47dd0c Copy README.md to be included in installation with poetry
  • 6a66516 Fix installation with poetry
  • 290051d Try to optimize runner disk space consumption during build
  • 6c76715 Optimize image building on source code changed
  • 4d82de9 Add verbose logging for downloading assets
  • b644cda Add logging for disk space at GitHub Actions workflow

📊 Changes

3 files changed (+79 additions, -19 deletions)

View changed files

➕ .github/workflows/docker-push.yml (+42 -0)
📝 Dockerfile (+17 -9)
📝 assets-download.sh (+20 -10)

📄 Description

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.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/RVC-Project/Retrieval-based-Voice-Conversion/pull/32 **Author:** [@rei-koshka](https://github.com/rei-koshka) **Created:** 6/13/2024 **Status:** ✅ Merged **Merged:** 7/8/2024 **Merged by:** [@Tps-F](https://github.com/Tps-F) **Base:** `develop` ← **Head:** `feature/docker-push-github` --- ### 📝 Commits (10+) - [`44361a6`](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion/commit/44361a6c3722c1894ef3ec41cd7d426537950b22) Add GitHub Actions workflow for pushing Docker images - [`faa8ade`](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion/commit/faa8adee007d1f2c4e1d7e7ee08b02625beb96ef) Fix invalid case of Docker image tag - [`2c10d4d`](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion/commit/2c10d4df1027de82b65abcabcb256332be737a4d) Optimize storage memory consumed by LFS layer - [`b1c9bbd`](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion/commit/b1c9bbd761ac9f29d3f1034193b67196cf35f6a7) Force workflow to run `ubuntu-22.04` - [`d47dd0c`](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion/commit/d47dd0cfa1ad6aa7121deb5159ed2e7312817948) Copy `README.md` to be included in installation with `poetry` - [`6a66516`](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion/commit/6a6651601a7e0468d18755af06ab47f513b67dd5) Fix installation with `poetry` - [`290051d`](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion/commit/290051d167734415d109755d6166d00160fe6120) Try to optimize runner disk space consumption during build - [`6c76715`](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion/commit/6c7671576448f007cfbcbd919b7ce41362521bc4) Optimize image building on source code changed - [`4d82de9`](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion/commit/4d82de9d5bad1d7ee37ad0e7518daf462a4d2c0e) Add verbose logging for downloading assets - [`b644cda`](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion/commit/b644cdaa2d4d811a8ad4bfd05e261728ca8bf609) Add logging for disk space at GitHub Actions workflow ### 📊 Changes **3 files changed** (+79 additions, -19 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/docker-push.yml` (+42 -0) 📝 `Dockerfile` (+17 -9) 📝 `assets-download.sh` (+20 -10) </details> ### 📄 Description 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](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories). 😅 Requirements for this to work: 1. [Create GitHub PAT](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic) with `write:packages` scope. 2. Add GitHub PAT to secrets of repository: 1. Got to the [settings](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion/settings/secrets/actions). 2. Click **New repository secret**. 3. Add GitHub PAT as **Secret**. 4. Enter `_GITHUB_PAT` as **Name**. 3. Push Git tags to tigger workflow. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-20 09:53:32 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RVC-Project/Retrieval-based-Voice-Conversion#55
No description provided.