Bytebase offers a database-as-code workflow, enabling you to manage database changes directly through your version control system (VCS).
Bytebase GitOps workflow is built upon the Bytebase API. It provides the ultimate flexibility to customize the GitOps workflow to integrate with your CI/CD pipeline.
Bytebase GitOps integration provides two core capabilities:
Developers create SQL migration files in their feature branches:
202501150900_add_user_table.sql
202501150901_seed_initial_data_dml.sql
When the PR is merged to main:
The release follows your configured deployment pipeline:
Important: When deploying a release, Bytebase automatically detects which migrations have already been applied to the target database and skips them. This ensures safe re-deployment and allows the same release to be deployed multiple times without errors.
To reach your self-hosted Bytebase from GitHub Actions, you can choose either options:
Tunnel GitHub Actions using Cloudflare Zero Trust with Cloudflare Warp GitHub Actions.
Use self-hosted runners.
Bytebase provides pre-built GitHub Actions to ease the GitHub integration.
If you’re using self-hosted GitLab in an internal network:
You’ll need to manually load the bytebase/bytebase-action
image into your internal Docker registry.
Set the clone_url
in GitLab Runner to avoid redirection to external addresses.
If the pre-built GitHub Actions do not meet your needs or you want to integrate with other VCSs, you can use the Bytebase API to build your own GitOps workflow.
Bytebase offers a database-as-code workflow, enabling you to manage database changes directly through your version control system (VCS).
Bytebase GitOps workflow is built upon the Bytebase API. It provides the ultimate flexibility to customize the GitOps workflow to integrate with your CI/CD pipeline.
Bytebase GitOps integration provides two core capabilities:
Developers create SQL migration files in their feature branches:
202501150900_add_user_table.sql
202501150901_seed_initial_data_dml.sql
When the PR is merged to main:
The release follows your configured deployment pipeline:
Important: When deploying a release, Bytebase automatically detects which migrations have already been applied to the target database and skips them. This ensures safe re-deployment and allows the same release to be deployed multiple times without errors.
To reach your self-hosted Bytebase from GitHub Actions, you can choose either options:
Tunnel GitHub Actions using Cloudflare Zero Trust with Cloudflare Warp GitHub Actions.
Use self-hosted runners.
Bytebase provides pre-built GitHub Actions to ease the GitHub integration.
If you’re using self-hosted GitLab in an internal network:
You’ll need to manually load the bytebase/bytebase-action
image into your internal Docker registry.
Set the clone_url
in GitLab Runner to avoid redirection to external addresses.
If the pre-built GitHub Actions do not meet your needs or you want to integrate with other VCSs, you can use the Bytebase API to build your own GitOps workflow.