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.