Skip to content
Crow CI
Codeberg

Deployment

Deployments are manually triggered pipeline runs for deploying successful builds to specific environments like staging or production.

Deployments must be enabled in the repository settings:

  1. Go to Repository SettingsGeneral
  2. Enable the Deployments option

Once enabled, a Deploy button appears on finished pipelines.

Deploy Button
Deploy Button

Click the Deploy button to open the deployment dialog:

Deployment Popup
Deployment Popup
FieldRequiredDescription
EnvironmentYesTarget environment (e.g., production, staging)
TaskNoSecondary filter to narrow down deployment jobs

Use the deployment event in your workflow’s when block to control which steps run during deployments.

when:
event: deployment
environment: production
when:
event: deployment
environment: production
task: migrate-db

Both environment and task support glob patterns:

when:
event: deployment
environment: prod-*
task: deploy-*

For complex filtering, use include/exclude lists:

when:
event: deployment
environment:
include: [production, staging]
exclude: [production-test]