Setup Docker Buildx (Advanced)
ActionsAbout
V1
LatestTags
Β (2)
Stop wasting CI minutes.
Make Docker builds 2β5x faster with built-in caching and production-grade defaults.
- β GHA Cache (zero-config, fastest for CI)
- π¦ Registry Cache (shared across teams)
- πΎ Local Cache (perfect for self-hosted runners)
- βοΈ Built-in QEMU (multi-arch out of the box)
- π Idempotent builder creation (safe for reruns)
- π Remote builder support (k8s / TCP ready)
- π§ Smart defaults (works even with minimal inputs)
Most Buildx setups:
- Require multiple actions
- Have fragile caching
- Break on reruns
This action is designed for real-world pipelines:
Faster builds. Fewer failures. More control.
Advanced Way To Setup Docker Buildx π
- name: Setup Buildx
uses: anantacloud-actions/setup-buildx-action@v1 uses: anantacloud-actions/setup-buildx-action@v1
with:
platforms: linux/amd64,linux/arm64
with:
cache-type: gha
with:
cache-type: registry
cache-image: myrepo/buildx-cache:latest
with:
cache-type: local
cache-dir: /tmp/.buildx-cache
- name: Build Image
run: |
docker buildx build \
--cache-from "$BUILDX_CACHE_FROM" \
--cache-to "$BUILDX_CACHE_TO" \
--platform linux/amd64,linux/arm64 \
-t myapp:latest .
Typical improvements:
- β± 60β90% faster builds
- π° Reduced CI costs
- π Reliable reruns (no flaky builders)
git clone https://github.com/anantacloud-actions/setup-buildx-action
cd setup-buildx-action
npm install
npm run build
Open a PR π
MIT
If this saves you time, give it a star β It helps others discover it.
Setup Docker Buildx (Advanced) is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.