Rock8Cloud
Guides

Workflows

Automate builds, deployments, and code reviews with event-driven workflows

Workflows let you automate what happens when code is pushed, a pull request is opened, or a deployment completes. Each service comes with pre-configured workflows that you can customize.

Accessing Workflows

  1. Navigate to your project
  2. Click on a service
  3. Select the Workflows tab

How Workflows Work

A workflow has two parts:

  • Trigger — the event that starts it (push, pull request, deployment, build, or manual)
  • Steps — the actions to perform (build, deploy, review, scan, etc.)

When the trigger fires, the steps run automatically. Steps at the same position run in parallel; steps at a higher position wait for the previous ones to finish.


Default Workflows

When you first open the Workflows tab, default workflows are created for your service:

WorkflowTriggerWhat It Does
Deploy on PushPush to branchBuilds, deploys, and runs service analysis in parallel
Manual DeployDeploy buttonBuilds and deploys on demand (always available)
Preview DeploymentsPull requestCreates a preview environment for each PR
AI Code ReviewPull requestRuns AI code review and posts a PR comment
ChangelogPR closedAuto-generates changelog entries from merged PRs
AI Project ScanBuild successRuns a full AI project scan after successful stable builds

Deploy on Push, Manual Deploy, and Preview Deployments are enabled by default when a service is created. AI-powered workflows (AI Code Review, Changelog, AI Project Scan) start disabled and require AI features to be enabled at the organization level.


Adding a Workflow

  1. Click Add Workflow in the top right
  2. Choose a template from the gallery
  3. Configure the workflow name, trigger settings, and notifications
  4. Click Create

Some templates (like Deploy on Push) are singletons — only one instance is allowed per service. These show "Added" in the gallery if already present.


Configuring Triggers

Each trigger type has its own settings:

Push

  • Branch — which branch triggers the workflow. Leave empty for the service's default branch. Supports glob patterns (e.g. feat/*, release/*).

Pull Request

  • Source Branch Pattern — glob pattern for the PR's source branch (e.g. * for all, feat/* for feature branches). The Preview Deployments workflow defaults to feat/*.
  • Target Branch — optionally override which branch the PR must target (defaults to service's default branch)
  • PR Actions — which PR events trigger the workflow:
    • Opened — when a PR is first created
    • Synchronize — when new commits are pushed to the PR
    • Closed / Merged — when the PR is closed or merged

Deployment Success / Failed

  • Environment Type — filter by Stable or Preview (leave empty to match any)

Build Success / Failed

  • Environment Type — filter by Stable or Preview (leave empty to match any)

Manual

No configuration needed. Triggered from the deploy button in the UI.


Editing a Workflow

  1. Click the pencil icon on any workflow card
  2. Update the name, description, trigger settings, or notifications toggle
  3. Click Save

Enabling / Disabling

Toggle the switch on any workflow card to enable or disable it. Disabled workflows won't run but keep their configuration.


Deleting a Workflow

  1. Click the trash icon on the workflow card
  2. Confirm deletion

Deleted workflows can be re-added from the template gallery.


Notifications

Each workflow has a Notifications toggle. When enabled, the workflow sends notifications through your project's configured notification channels (Slack, webhooks).


Understanding the Workflow Card

Each workflow card shows:

  • Name and trigger badge (Push, Pull Request, etc.)
  • Branch configuration — e.g. feat/* → main for PR workflows, branch: main for push
  • Steps — the sequence of actions (e.g. "Build & Deploy → Service Analysis")
  • Enable/disable toggle

Common Setups

Basic CI/CD

Enable Deploy on Push with your main branch. Every push to main will build and deploy automatically.

Preview Environments

Enable Preview Deployments. Every PR gets its own preview environment that's automatically cleaned up when the PR is closed or merged.

Code Review + Preview

Enable both Preview Deployments and AI Code Review. PRs get a live preview environment and an automated code review with comments posted directly on the PR.

Post-Build Analysis

Enable AI Project Scan. After each successful stable build, an AI scan analyzes your project and provides insights.

On this page