Docker
How do I build and push in one step?
Quick answer
Use docker/build-push-action with push: true.
The detail that matters
Pushing directly from the builder avoids loading the image into the runner's Docker daemon, which is a large saving for big images.
Your next build could be twice as fast, at half the price
Start free. Migrating away is the same one line, and we publish that diff too.
Related
How do I reduce image pull time?Use a registry pull-through cache in the same network as the runner.How do I reset a Docker builder cache?Run docker buildx prune on the builder, or recreate the builder instance.Do remote builders support multi-platform builds?Yes. runnerhut runs separate amd64 and arm64 builders and merges the results.How do I push a manifest list?Build each architecture by digest, then combine them with docker buildx imagetools create.