Free DevOps template

Pipeline template

Build with a dependency cache, unit and end-to-end tests, then staging and production gated on the tests.

It opens with this template loaded and runs in your browser. You don't need an account to use it; a free account saves your work and exports it.

The job it does

When you set up CI/CD for a service, or review why a pipeline is slow or deploys untested code.

What's inside

This is the template exactly as the DevOps & TechOps Lab opens it, read-only. Open it to run it, change it and export it.

  • 4 stages
  • Green in 46 s simulated
  • Deploys to staging, production
The brief: Pipeline template

A pipeline you can run in the lab: each stage, what it needs and where it deploys. The lab simulates the run, so you see the order, the cache and the gates before you change your real CI.

pipeline.yml
# CI/CD pipeline: build once, test, then deploy to staging and production.
# The deploy only runs when the "test" stage passed; npm packages are cached.
stages:
  - name: build
    cache: npm
    run:
      - install
      - build
  - name: test
    run:
      - unit
      - e2e
  - name: staging
    environment: staging
    run:
      - deploy
  - name: production
    environment: production
    run:
      - deploy
The simulated run
StageResultTimeSteps
buildpassed16 snpm install, compile
testpassed20 sunit tests, end-to-end tests
staging (staging)passed5 sdeploy
production (production)passed5 sdeploy

The lesson behind it

Learn why it works, with a podcast and a quiz for each lesson.

  • Release checklist

    Before, during and after a deploy: owners, go/no-go checks and the rollback trigger, as a checklist.

  • Runbook

    Symptoms, first checks with commands, fixes and when to escalate, for one alert.

All DevOps templates · Every template