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
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.