Skip to content

build-and-push: optional Docker Hub login for dual-registry pushes#1

Merged
lacraig2 merged 1 commit into
mainfrom
ci/build-and-push-dockerhub
Jun 20, 2026
Merged

build-and-push: optional Docker Hub login for dual-registry pushes#1
lacraig2 merged 1 commit into
mainfrom
ci/build-and-push-dockerhub

Conversation

@lacraig2

Copy link
Copy Markdown
Contributor

Adds dockerhub-token secret + dockerhub-user input to build-and-push.yml. When the token is set, the build also logs in to Docker Hub so extra-tags referencing Docker Hub bare repos (e.g. rehosting/penguin:latest) are pushed in the same build.

Covers the common publish-to-both-Harbor-and-Docker-Hub pattern (penguin/publish, fw2tar). Backward-compatible: token unset → no Docker Hub login → existing @v1 consumers behave identically.

After merge: cut v1.1.0 + move v1, then penguin/publish's build can migrate onto build-and-push.yml@v1 with the dockerhub-token secret.

Adds a dockerhub-token secret + dockerhub-user input. When the token is set, the
build also logs in to Docker Hub so extra-tags referencing Docker Hub bare repos
(e.g. rehosting/penguin:latest) are pushed in the same build. Covers the common
publish-to-both-Harbor-and-Docker-Hub pattern (penguin/publish, fw2tar). Harbor-
only repos are unaffected (token unset => no Docker Hub login).
@lacraig2 lacraig2 merged commit dff1e51 into main Jun 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant