Skip to content

feat: add optional Docker Hub publishing to container build workflow#4

Merged
cwaits6 merged 1 commit intomainfrom
feat/dockerhub-support
Mar 19, 2026
Merged

feat: add optional Docker Hub publishing to container build workflow#4
cwaits6 merged 1 commit intomainfrom
feat/dockerhub-support

Conversation

@cwaits6
Copy link
Owner

@cwaits6 cwaits6 commented Mar 19, 2026

Summary

  • Add dockerhub-image input to the reusable container-build workflow
  • Add DOCKERHUB_USERNAME and DOCKERHUB_TOKEN optional secrets
  • Generate Docker Hub tags only on tag pushes (v*) when dockerhub-image is set
  • Conditionally login to Docker Hub and push multi-arch manifest alongside GHCR
  • Existing callers are unaffected — all new logic is gated on the input being non-empty

Test plan

  • Verify existing callers without dockerhub-image still work (no Docker Hub login attempted)
  • Verify tag push with dockerhub-image set pushes to both GHCR and Docker Hub
  • Verify PR builds with dockerhub-image set skip Docker Hub (tags only)

Add dockerhub-image input and DOCKERHUB_USERNAME/DOCKERHUB_TOKEN secrets
to the reusable container-build workflow. When dockerhub-image is set and
the trigger is a tag push (v*), the multi-arch manifest is pushed to
Docker Hub in addition to the primary registry. Existing callers are
unaffected — all new logic is gated on the input being non-empty.
@cwaits6 cwaits6 force-pushed the feat/dockerhub-support branch from 9fb6623 to 94eb06d Compare March 19, 2026 03:49
@cwaits6 cwaits6 changed the title Feat/dockerhub support feat: add optional Docker Hub publishing to container build workflow Mar 19, 2026
@cwaits6 cwaits6 merged commit ac16452 into main Mar 19, 2026
@cwaits6 cwaits6 deleted the feat/dockerhub-support branch March 19, 2026 03:50
@github-actions
Copy link

🎉 This PR is included in version 1.4.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant