Skip to content

Commit

Permalink
chore: add branch_example.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
earayu committed Dec 17, 2024
1 parent eea87f4 commit 8e7a695
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/branch_example.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Branch Example

on:
push:
workflow_dispatch:
inputs:
source_host:
Expand Down Expand Up @@ -37,7 +36,7 @@ on:
description: 'WeScale image tag'
required: false
type: string
default: 'apecloud/apecloud-mysql-scale:0.3.8-alpha5'
default: 'apecloud/apecloud-mysql-scale:0.3.8'

jobs:
build:
Expand All @@ -49,7 +48,7 @@ jobs:
SOURCE_PASSWORD: ${{ inputs.source_password || '' }}
INCLUDE_DATABASES: ${{ inputs.include_databases || '*' }}
EXCLUDE_DATABASES: ${{ inputs.exclude_databases || 'information_schema,mysql,performance_schema,sys' }}
WESCALE_IMAGE: ${{ inputs.wescale_image || 'apecloud/apecloud-mysql-scale:0.3.8-alpha5' }}
WESCALE_IMAGE: ${{ inputs.wescale_image || 'apecloud/apecloud-mysql-scale:0.3.8' }}

steps:
- name: Set Up Target Cluster
Expand Down
4 changes: 2 additions & 2 deletions doc-chinese/toturial/08-Branch.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ docker run -itd --network wescale-network --name wescale \
-e MYSQL_PORT=3306 \
-e MYSQL_HOST=mysql-server \
-e CONFIG_PATH=/vt/config/wescale/default \
apecloud/apecloud-mysql-scale:0.3.8-alpha4 \
apecloud/apecloud-mysql-scale:0.3.8 \
/vt/examples/wesql-server/init_single_node_cluster.sh

# Target集群
Expand All @@ -98,7 +98,7 @@ docker run -itd --network wescale-network --name wescale15307 \
-e MYSQL_HOST=mysql-server3307 \
-e VTGATE_MYSQL_PORT=15307 \
-e CONFIG_PATH=/vt/config/wescale/default \
apecloud/apecloud-mysql-scale:0.3.8-alpha4 \
apecloud/apecloud-mysql-scale:0.3.8 \
/vt/examples/wesql-server/init_single_node_cluster.sh
```

Expand Down
4 changes: 2 additions & 2 deletions doc/toturial/08-Branch.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ docker run -itd --network wescale-network --name wescale \
-e MYSQL_PORT=3306 \
-e MYSQL_HOST=mysql-server \
-e CONFIG_PATH=/vt/config/wescale/default \
apecloud/apecloud-mysql-scale:0.3.8-alpha4 \
apecloud/apecloud-mysql-scale:0.3.8 \
/vt/examples/wesql-server/init_single_node_cluster.sh

# Target cluster
Expand All @@ -67,7 +67,7 @@ docker run -itd --network wescale-network --name wescale15307 \
-e MYSQL_HOST=mysql-server3307 \
-e VTGATE_MYSQL_PORT=15307 \
-e CONFIG_PATH=/vt/config/wescale/default \
apecloud/apecloud-mysql-scale:0.3.8-alpha4 \
apecloud/apecloud-mysql-scale:0.3.8 \
/vt/examples/wesql-server/init_single_node_cluster.sh
```

Expand Down

0 comments on commit 8e7a695

Please sign in to comment.