Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 332a62d

Browse files
Update README.md
1 parent acbe70c commit 332a62d

File tree

1 file changed

+2
-49
lines changed

1 file changed

+2
-49
lines changed

‎README.md‎

Lines changed: 2 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Modify the environment variables to match your setup.
2626
BYTEBASE_SERVICE_ACCOUNT_SECRET: ${{secrets.BYTEBASE_SERVICE_ACCOUNT_SECRET}}
2727
BYTEBASE_PROJECT: "projects/project-sample"
2828
BYTEBASE_TARGETS: "instances/test-sample-instance/databases/hr_test" # the database targets to check against.
29-
FILE_PATTERN: "migrations/*.sql" # the glob pattern matching the migration files.
29+
FILE_PATTERN: "migrations-semver/*.sql" # the glob pattern matching the migration files.
3030
```
3131
3232
Set your service account password in the repository secrets setting with the name `BYTEBASE_SERVICE_ACCOUNT_SECRET`.
@@ -52,7 +52,7 @@ You need to edit both deploy-to-test and deploy-to-prod jobs.
5252
# 'deploy_to_test' job rollouts the 'test' stage and 'deploy_to_prod' job rollouts the 'prod' stage.
5353
BYTEBASE_TARGETS: "instances/test-sample-instance/databases/hr_test,instances/prod-sample-instance/databases/hr_prod"
5454
BYTEBASE_TARGET_STAGE: environments/test
55-
FILE_PATTERN: "migrations/*.sql"
55+
FILE_PATTERN: "migrations-semver/*.sql"
5656
```
5757

5858
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.
@@ -61,50 +61,3 @@ Set your service account password in the repository secrets setting with the nam
6161

6262
> [!IMPORTANT]
6363
> 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.
64-
65-
## Use javascript actions
66-
67-
### How to configure sql-review.yml
68-
69-
Copy [sql-review.yml](/.github/workflows/sql-review.yml) to your repository.
70-
71-
Modify the environment variables to match your setup.
72-
73-
```yml
74-
env:
75-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # set GITHUB_TOKEN because the 'Check release' step needs it to comment the pull request with check results.
76-
BYTEBASE_URL: https://demo.bytebase.com
77-
BYTEBASE_SERVICE_ACCOUNT: ci@service.bytebase.com
78-
BYTEBASE_PROJECT: "projects/project-sample"
79-
BYTEBASE_TARGETS: "instances/test-sample-instance/databases/hr_test" # the database targets to check against.
80-
FILE_PATTERN: "migrations/*.sql" # the glob pattern matching the migration files.
81-
```
82-
83-
Set your service account password in the repository secrets setting with the name `BYTEBASE_SERVICE_ACCOUNT_SECRET`.
84-
85-
> [!IMPORTANT]
86-
> 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.
87-
88-
### How to configure release.yml
89-
90-
Copy [release.yml](/.github/workflows/release.yml) to your repository.
91-
92-
Modify the environment variables to match your setup.
93-
94-
```yml
95-
env:
96-
BYTEBASE_URL: https://demo.bytebase.com
97-
BYTEBASE_SERVICE_ACCOUNT: ci@service.bytebase.com
98-
BYTEBASE_PROJECT: "projects/project-sample"
99-
# The Bytebase rollout pipeline will deploy to 'test' and 'prod' environments.
100-
# 'deploy_to_test' job rollouts the 'test' stage and 'deploy_to_prod' job rollouts the 'prod' stage.
101-
BYTEBASE_TARGETS: "instances/test-sample-instance/databases/hr_test,instances/prod-sample-instance/databases/hr_prod"
102-
FILE_PATTERN: "migrations/*.sql" # the glob pattern matching the migration files.
103-
```
104-
105-
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.
106-
107-
Set your service account password in the repository secrets setting with the name `BYTEBASE_SERVICE_ACCOUNT_SECRET`.
108-
109-
> [!IMPORTANT]
110-
> 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.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /