voicebox icon indicating copy to clipboard operation
voicebox copied to clipboard

feat(actions): add docker-registry.yml for automatic ghcr.io image publishing

Open Wong789 opened this issue 7 months ago • 5 comments

Summary

This PR adds a new GitHub Actions workflow that automatically builds and publishes Docker images to ghcr.io (GitHub Container Registry) when version tags (v*) are pushed to the repository.

Changes

  • Added docker-registry.yml workflow
  • Multi-platform build: linux/amd64 and linux/arm64
  • Publishes to ghcr.io with semver tagging
  • Uses GitHub Actions cache for optimized builds

Addresses

Issue #453

Testing

git tag v1.0.0 && git push origin v1.0.0

Summary by CodeRabbit

  • Chores
    • Automated Docker image builds and publishing to GitHub Container Registry on version releases with support for multiple platforms (AMD64 and ARM64).

Wong789 avatar Apr 17 '26 20:04 Wong789

📝 Walkthrough

Walkthrough

A new GitHub Actions workflow file is introduced that automatically builds and publishes Docker images to GitHub Container Registry when tags matching v* are pushed. The workflow handles multi-platform builds for linux/amd64 and linux/arm64 with caching optimization.

Changes

Cohort / File(s) Summary
Docker Registry CI/CD
.github/docker-registry.yml
New GitHub Actions workflow that builds and pushes Docker images to GHCR on version tag pushes. Includes QEMU setup, Docker Buildx configuration, metadata generation with semver tags, and layer caching via GitHub Actions cache backend.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 A rabbit hops with Docker glee, Building images, fancy and free, Tags v-marked trigger the automated flow, To ghcr.io the images go, ARM and AMD in harmony! 📦✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding a GitHub Actions workflow for automatic Docker image publishing to ghcr.io.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • [ ] Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

coderabbitai[bot] avatar Apr 17 '26 20:04 coderabbitai[bot]

@jamiepine Any chance this gets added to next update?

Hello-World-Traveler avatar Apr 25 '26 23:04 Hello-World-Traveler

@jamiepine Any chance this gets added to next update?

Yeah I wanted to land 0.5 on its own, I'll get a patch out asap with this and a few other PRs

jamiepine avatar Apr 25 '26 23:04 jamiepine

@jamiepine Thank you. Awesome work you and others are doing here!

Hello-World-Traveler avatar Apr 25 '26 23:04 Hello-World-Traveler

Would be nice to have this merged. Building the container yourself should only be required if you want to live on the edge / develop it. Images should ideally be prebuilt for the common user.

systemofapwne avatar Jun 18 '26 21:06 systemofapwne