Add workflow for publishing custom Docker images from any branch#4065
Add workflow for publishing custom Docker images from any branch#4065
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4065 +/- ##
=======================================
Coverage 88.67% 88.67%
=======================================
Files 25 25
Lines 2438 2438
Branches 609 611 +2
=======================================
Hits 2162 2162
Misses 274 274
Partials 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
The shared _build_electric_image.yml now only builds multi-arch images and exports digests. Each caller (release and custom) handles its own manifest creation and tagging logic. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Drop the shared workflow abstraction — just add a new self-contained workflow alongside the unchanged release workflow. Simpler and no risk to the existing release pipeline. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Have you considered modifying the existing |
Yeah, I did consider it, and you can see it in the commit history: 8b269cd - both in one but a rather confusing UX of release_tag, custom_ref and custom_tag at that point I gave up, also worrying about breaking the release workflow and perhaps overcomplicating things. But you're right, it would be better to have the common workflow shared. I could either:
What do you reckon? |
Why
We sometimes need to publish Docker images from feature branches for testing (e.g.
electricsql/electric:subqueries-alpha) without going through the release flow. The existing workflow only supports release tags, so there was no clean way to do this from CI.Usage
In GitHub Actions, go to "Publish custom Electric image to Docker Hub" → Run workflow, and fill in:
rob/simple-subqueries-with-dnf)subqueries-alpha)This publishes a multiarch image to
electricsql/electric:<your-tag>. It does not touchlatest,canary, or the canary repo.🤖 Generated with Claude Code