You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have **Enterprise Plan**, you can create a **Custom Role** for the service account which require fewer permissions, and assign this role instead of DBA:
Copy file name to clipboardExpand all lines: content/docs/tutorials/gitops-azure-devops-workflow.md
+10-37Lines changed: 10 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,19 +17,17 @@ This is one of our database GitOps series with Bytebase:
17
17
18
18
---
19
19
20
-
This tutorial shows you how to build an database GitOps workflow using Azure DevOps Pipeline and Bytebase API. You'll learn to:
20
+
This tutorial shows you how to build a database GitOps workflow using Azure DevOps Pipeline and Bytebase API. You'll learn to create a streamlined database release workflow where you can:
21
21
22
-
1. Create a streamlined database release workflow where you can:
23
-
24
-
- Submit SQL migrations through Azure DevOps
25
-
- Automatically run SQL reviews on pull requests
26
-
- Auto-create and deploy Bytebase releases when merging to `main`
22
+
- Submit SQL migrations through Azure DevOps
23
+
- Automatically run SQL reviews on pull requests
24
+
- Auto-create and deploy Bytebase releases when merging to `main`
27
25
28
26
While we use Azure DevOps Pipeline in this guide, you can apply these concepts to other CI platforms like [GitHub Actions](/docs/tutorials/gitops-github-workflow), GitLab CI, or Bitbucket Pipelines using the Bytebase API.
29
27
30
28
<HintBlocktype="info">
31
29
32
-
This tutorial code repository is at [https://dev.azure.com/bytebase-hq/_git/bytebase-example](https://dev.azure.com/bytebase-hq/_git/bytebase-example)
30
+
This tutorial code repository is at [https://dev.azure.com/bytebase-hq/\_git/bytebase-example](https://dev.azure.com/bytebase-hq/_git/bytebase-example)
33
31
34
32
</HintBlock>
35
33
@@ -46,40 +44,15 @@ This tutorial code repository is at [https://dev.azure.com/bytebase-hq/_git/byte
If you have **Enterprise Plan**, you can create a **Custom Role** for the service account which require fewer permissions, and assign this role instead of DBA:
### Step 4 - Copy from the Example Repository and Configure Variables
81
54
82
-
1. Create a new project. Copy `pipelines` folder from [https://dev.azure.com/bytebase-hq/_git/bytebase-example](https://dev.azure.com/bytebase-hq/_git/bytebase-example). There are two workflows in this repository:
55
+
1. Create a new project. Copy `pipelines` folder from [https://dev.azure.com/bytebase-hq/\_git/bytebase-example](https://dev.azure.com/bytebase-hq/_git/bytebase-example). There are two workflows in this repository:
83
56
84
57
-`pipelines/check-release.yml`: [Lint the SQL](/docs/sql-review/overview/) migration files after the PR is created.
85
58
-`pipelines/rollout-release.yml`: Create a release in Bytebase after the PR is merged to the `main` branch.
@@ -119,7 +92,7 @@ To create migration files to trigger release creation, the files have to match t
119
92
1. Commit to a new branch and create a pull request, the `check-release` workflow will be triggered. There will be a warning in the SQL review result.
1. According to the SQL review result, you can do some changes to the SQL files and push to the branch. Then you should see the SQL review has passed. There are no warnings in the SQL review result.
@@ -128,7 +101,7 @@ To create migration files to trigger release creation, the files have to match t
If you have **Enterprise Plan**, you can create a **Custom Role** for the service account which require fewer permissions, and assign this role instead of DBA:
0 commit comments