Simple GitOps

Bytebase provides a built-in GitOps workflow out of the box.

gitops-workflow

This GitOps workflow is opinionated for the simple use case:

  • It imposes a naming convention on the migration file.
  • It only creates Bytebase rollout issue when the migration file is merged into the target branch. Under the hood, it creates a webhook in the linked repository to observe the merge event.
  • If you have successfully rolled out the issue and you want to make further change based on that migration file, you need to create a new migration file instead of editing the original one inline.

You can check this demo issue to see what it looks like after the setup. This issue is created by Bytebase after the PR is merged.

The simple GitOps setup contains 3 steps:

  1. Add Git Provider
  2. Add GitOps Connector in Project
  3. Create Migration Files
Edit this page on GitHub