This code repository (or "repo") is designed to demonstrate the best GitHub has to offer with the least amount of noise.
The repo includes an index.html file (so it can render a web page), two GitHub Actions workflows, and a CSS stylesheet dependency.
This Feature automates the migration of Docker images from a source Docker Hub user (e.g. bitnamilegacy) to a destination user (e.g. helmhubio) using GitHub Actions.
The workflow performs the following in sequence:
- Fetch all repositories from the source user on Docker Hub.
- List tags for each repository, filtering out SHA-based tags (e.g. sha256-*).
- Select the most recent valid tag (e.g. 2.4.65-debian-12-r2).
- Check if the image and tag already exist in the destination repository (helmhubio).
- If the image exists, it’s skipped.
- If not, it proceeds to migrate.
- Pull the image from the source repository.
- Tag and push the image to the destination repository on Docker Hub.
- Continues until all repositories have been processed.
The migration runs manually via GitHub Actions → “Run workflow”.
.github/workflows/migrate-images.yml
- The script ensures idempotency — it will not re-upload images that already exist.
- Non-versioned tags (SHA-style) are automatically skipped.
- Pagination support ensures all repositories are fetched, not just the first 100.