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 aab97a6

Browse files
Merge pull request #23 from bytebase/remove-legacy-example
Delete legacy gitops example
2 parents be47406 + 4716eb7 commit aab97a6

10 files changed

+3
-249
lines changed

‎.github/workflows/release.yml‎

Lines changed: 0 additions & 109 deletions
This file was deleted.

‎.github/workflows/sql-review.yml‎

Lines changed: 0 additions & 74 deletions
This file was deleted.

‎README.md‎

Lines changed: 3 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ For GitHub flow, feature branches are merged into the main branch and the main b
88

99
[release-action.yml](/.github/workflows/release-action.yml) builds the code and then for each environment migrate the databases and deploy the code. Using [environments with protection rules](https://docs.github.com/en/actions/managing-workflow-runs-and-deployments/managing-deployments/managing-environments-for-deployment#required-reviewers), it can deploy to the test environment automatically and push to the prod environment after approval.
1010

11-
## Use bytebase/bytebase-action (recommended)
11+
## Use bytebase/bytebase-action
1212

1313
The README of bytebase/bytebase-action can be found at [README](https://github.com/bytebase/bytebase/blob/main/action/README.md).
1414

@@ -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.

‎migrations/202503071616_create_ticket_table.sql‎

Lines changed: 0 additions & 4 deletions
This file was deleted.

‎migrations/202503181018_ticket_table_add_date_column.sql‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎migrations/202503181054_1.sql‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎migrations/202503181055_2.sql‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎migrations/202504171429_1.sql‎

Lines changed: 0 additions & 3 deletions
This file was deleted.

‎migrations/202504171526_2.sql‎

Lines changed: 0 additions & 3 deletions
This file was deleted.

‎migrations/202504301754_1.sql‎

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
(0)

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