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
Copy file name to clipboardExpand all lines: README.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,37 @@ Set your service account password in the repository secrets setting with the nam
64
64
> [!IMPORTANT]
65
65
> The migration filename SHOULD comply to the naming scheme described in [bytebase-action](https://github.com/bytebase/bytebase/tree/main/action#global-flags) `--file-pattern` flag section.
66
66
67
+
### How to configure declarative-release-action.yml
68
+
69
+
Copy [declarative-release-action.yml](/.github/workflows/declarative-release-action.yml) to your repository.
70
+
71
+
This workflow uses declarative schema management. With declarative mode, you define the desired end state of your database schema, and Bytebase automatically generates and applies the necessary changes.
72
+
73
+
Modify the environment variables to match your setup.
74
+
You need to edit the `create-rollout`, `deploy-to-test` and `deploy-to-prod` jobs.
In the repository environments setting, create two environments: "test"and "prod". In the "prod" environment setting, configure "Deployment protection rules", check "Required reviewers" and add reviewers in order to rollout the "prod" environment after approval.
92
+
93
+
Set your service account password in the repository secrets setting with the name `BYTEBASE_SERVICE_ACCOUNT_SECRET`.
94
+
95
+
> [!IMPORTANT]
96
+
> You must export your initial schema files by clicking **Export Schema** in the database detail page on Bytebase and saving them to the `schema/` directory.
97
+
67
98
### How to configure chatops-migrate.yml
68
99
69
100
Copy [chatops-migrate.yml](/.github/workflows/chatops-migrate.yml) to your repository.
0 commit comments