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
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.
# 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| Stage | Result | Time | Steps |
|---|---|---|---|
| build | passed | 16 s | npm install, compile |
| test | passed | 20 s | unit tests, end-to-end tests |
| staging (staging) | passed | 5 s | deploy |
| production (production) | passed | 5 s | deploy |
The lesson behind it
Learn why it works, with a podcast and a quiz for each lesson.
More DevOps templates
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.