Skip to content

ci: mirror Docker images to Docker Hub on main and releases#20

Merged
unknwon merged 2 commits into
mainfrom
ci/dockerhub-push
May 17, 2026
Merged

ci: mirror Docker images to Docker Hub on main and releases#20
unknwon merged 2 commits into
mainfrom
ci/dockerhub-push

Conversation

@unknwon

@unknwon unknwon commented May 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • Mirror the buildkit digests pushed to ghcr.io/unknwon/lfsd to unknwon/lfsd on Docker Hub for both main-branch builds (:edge) and release publishes (:vX.Y.Z plus :latest for stable).
  • A single buildkit invocation pushes by-digest to both registries, then a per-registry imagetools create step produces the multi-arch manifest list.
  • PR builds continue to publish only to ttl.sh; Trivy scans remain pointed at the ghcr :edge tag.

Operator setup

Docker Hub does not auto-create repositories on token-based pushes, so before this can run successfully:

  1. Create unknwon/lfsd on Docker Hub.
  2. Create an access token scoped with Read, Write, Delete on unknwon/lfsd.
  3. Add repository secrets DOCKERHUB_USERNAME and DOCKERHUB_TOKEN.

Test plan

  • After merge, confirm the Docker workflow on main succeeds and docker pull unknwon/lfsd:edge resolves the multi-arch manifest.
  • On the next tagged release, confirm unknwon/lfsd:<version> is published, and that stable releases also publish :latest.

unknwon added 2 commits May 17, 2026 09:16
Push the same buildkit digests to docker.io/unknwon/lfsd alongside
ghcr.io/unknwon/lfsd so users can pull from either registry. PR builds
continue to publish only to ttl.sh.
@unknwon unknwon changed the title ci: mirror images to Docker Hub on main and releases ci: mirror Docker images to Docker Hub on main and releases May 17, 2026
@unknwon unknwon merged commit 2211798 into main May 17, 2026
5 checks passed
@unknwon unknwon deleted the ci/dockerhub-push branch May 17, 2026 13:24
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