Workflows

Configure CI/CD pipelines for deployment tracking

GitHub Actions Workflow

The easiest way to enable DORA metrics is through a GitHub Actions workflow that uses GitHub's built-in deployment tracking.

Benefits:

  • • Automatic deployment event creation
  • • Built-in environment URL tracking
  • • Status monitoring (pending, success, failure)
  • • Seamless DORA metrics integration
.github/workflows/deploy.yml
name: Deploy to Production

on:
  push:
    branches: [main]

permissions:
  contents: read
  deployments: write

jobs:
  deploy:
    runs-on: ubuntu-latest
    environment:
      name: production
      url: https://your-app.com
    
    steps:
      - name: Checkout code
        uses: actions/checkout@v4
      
      - name: Deploy to production
        run: |
          # Add your deployment commands here

Key Configuration:

environment.name Set environment (production, staging)
deployments: write Essential for DORA tracking

Bitbucket Pipelines

If you're using Bitbucket, enable DORA metrics using Bitbucket Pipelines with built-in deployment tracking.

bitbucket-pipelines.yml
image: node:18

pipelines:
  branches:
    main:
      - step:
          name: "Deploy to Production"
          deployment: production
          script:
            - npm ci
            - npm run build
            - echo "Deploying..."

Verify Your Setup

What to Check:

  • • Deployments appear in your dashboard after successful runs
  • • DORA metrics start calculating (may take a few deployments)
  • • Environment and status information is correct
  • • Pull requests are automatically linked to deployments
View Deployments
FEATURED

In-Depth Guide

Learn the philosophy behind simple, reliable deployments with real-world examples.

Read: Structuring GitHub Workflows