We raised $3M for agent-native runners

Fold a duplicate image workflow into the shared build

Build the deployer image as a stage of the shared Dockerfile and delete the separate workflow that rebuilt it.

How Spotify used this technique

Read what Spotify changed and follow the original sources.

Fold a duplicate image workflow into the shared build

A separate workflow rebuilt Confidence's deployer image from its own Dockerfile on pushes to main and on pull requests, except those that only changed wasm, wasm-msg or data files. The same change moves the image into the shared Dockerfile as a stage built on the resolver's build stage, and deletes the separate workflow and its Dockerfile.

Use it when
Two workflows build overlapping images or artifacts from the same sources on the same events.
Before applying it
The shared build now owns the image, so its checks must cover what the deleted workflow checked.

Company Playbooks