Skip to main content

Builds that skip themselves

The cheapest build is the one that doesn’t run. Inframan skips a service’s build when:
  • The commit was already built for that service.
  • Nothing the service depends on changed since its last image. Declare what that is with watch_paths, so a monorepo push rebuilds only the services it touched.
  • Another service in the same release has an identical build. They share one image.
inframan.yaml
When a build does run, Docker’s layer cache is kept in your registry, so only the layers after the first change are rebuilt. Order your Dockerfile so that what changes least, such as installing dependencies, comes first. To skip a release entirely, put [skip inframan] or [skip ci] in the commit message.

Build machines

Open the App Store, select CI/CD under Platform components, and select Configuration. Under Build servers: By default one server is kept warm. Set Servers kept warm to 0 to scale builds to zero between pushes: you pay nothing while nobody pushes, and each build waits for a machine to start. On non-production infrastructures, builds in the cluster run on Spot nodes, and builder machines on Google Cloud run on-demand.