Skip to main content

Docker Builders

Overview​

Docker builders are BuildPulse runner types for jobs that build Docker images. The job itself runs on the builder: you point runs-on: at a Docker builder label and use the buildpulse/setup-docker-builder action in place of docker/setup-buildx-action.

A Docker builder keeps a persistent layer cache between jobs, so a build only rebuilds the layers that changed. There is no cache-from or cache-to to configure.

Docker builders come in 4x, 8x, 16x and 32x sizes on x64 and arm64, at the same per-minute price as a standard runner of the same size. See Configuration & Pricing.

Usage​

  1. In BuildPulse, open Runners, then Setup. In the Runner Sizes table, select the Docker Builder tab and add the size you want.
  2. Update the workflow:
jobs:
build:
- runs-on: ubuntu-latest
+ runs-on: bp-docker-builder-x64-8x
steps:
- uses: actions/checkout@v4
- - uses: docker/setup-buildx-action@v3
+ - uses: buildpulse/setup-docker-builder@v2
- uses: docker/build-push-action@v6
with:
push: true
tags: org/app:latest

Keep the standard docker/build-push-action. The first build fills the cache; later builds reuse it. If the workflow sets cache-from and cache-to for an external cache, you can remove them.

See the buildpulse/setup-docker-builder repository for release notes.

Multi-platform Docker Builds​

To build for both amd64 and arm64 without emulation, run one job per architecture with a matrix, each on a builder of that architecture:

jobs:
build:
strategy:
matrix:
include:
- arch: amd64
runner: bp-docker-builder-x64-8x
- arch: arm64
runner: bp-docker-builder-arm64-8x
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- uses: buildpulse/setup-docker-builder@v2
- uses: docker/build-push-action@v6
with:
push: true
tags: user/app:${{ matrix.arch }}

Each image is built on hardware of its own architecture.

Deprecated actions​

buildpulse/setup-buildx-action (with its buildpulse-builder input) and buildpulse/build-push-action are deprecated. They targeted an earlier remote builder pool and do not work on current BuildPulse runners. Replace them as shown above.