Release versus Plan
A Release answers which files to use. A Plan specifies the work and its targets and tracks the change through deployment. The Release has no deployment targets of its own and can be referenced by multiple Plans. A UI Plan can also use SQL directly, without a Release. Creating a Release saves the files. Execution happens through a Plan’s Rollout, where each target has its own task results.What the files describe
A Release uses one of two change models:- Versioned migrations describe changes to execute in order, such as creating a table and then adding a column. Bytebase records applied versions separately for each database and skips versions already applied there.
- Declarative schema definitions describe the desired schema. Bytebase compares them with each target’s schema to generate the required changes. Different starting schemas can produce different SQL.
Create a Release
An integration creates a Release through the API. In the documented GitOps workflow, CI checks the files during pull-request review; after merge, the deployment job usesbytebase-action rollout to create the Release, a Plan referencing it, and the Rollout.
Release contents cannot be edited. Correct unapplied files in a new Release. If a migration has already run, add a new migration version to make the next change rather than editing the applied file.
Deploy the same files across environments
A Plan that targets both Test and Prod can deploy the Release to Test first, then continue to Prod. The promotion job reuses the same Plan and Release.--plan, the command uses its recorded targets; it does not add Prod to a Test-only Plan. See GitOps release and promotion.
Inspect a Release
Open your project’s CI/CD → Releases. The page lists the changes released through GitOps: each row is a Plan that deploys a Release. A Release that no Plan references does not appear here, and CI/CD → Plans lists only the Plans that have no Release. Select a row to open the Plan. It shows the Release’s source, such as the pull request or commit, the author, and the branch, and each database’s files with whether this run applied them. The source details come from the CI job that created the Release, and depend on what the CI provider exposes; Bitbucket Pipelines, for example, supplies no title or author. To set them yourself, pass--source-title, --source-url, --source-author, or --source-ref to bytebase-action.
Follow the GitOps tutorial for a complete example, or GitOps troubleshooting to investigate a failed check or deployment job.
