> ## Documentation Index
> Fetch the complete documentation index at: https://inframan.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Faster, cheaper builds

> Skip builds that wouldn't change anything, and size the build machines to your team.

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

```yaml inframan.yaml theme={null}
services:
  api:
    port: 8080
    build:
      dockerfile: services/api/Dockerfile
      watch_paths: [services/api, packages/shared]
```

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**:

| Setting | What it does |
| - | - |
| **Server type** | The machine size for builds. Bigger builds faster and costs more per minute. |
| **Servers at most** | How many builds can run on separate servers at once |
| **Servers kept warm** | Machines that wait between builds, so a build starts without waiting for one. A warm machine bills while idle. In the cluster, this is the build pool's minimum size. |
| **Builds per server** | How many builds share one server |
| **Build timeout (minutes)** | When a build is stopped |

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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.