Skip to content

Guides

How to structure deployment jobs

Deploys are slow, risky and hard to audit.

5 min read

Deploys are slow, risky and hard to audit.

Why it happens

Build, test and deploy are entangled in one job with production credentials in scope.

How to fix it

  1. Separate deploy into its own job with a deployment environment
  2. Require reviewers on the production environment
  3. Use OIDC so no long-lived cloud credential exists
  4. Promote artefacts rather than rebuilding

Your next build could be twice as fast, at half the price

Start free. Migrating away is the same one line, and we publish that diff too.