-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:add example.yaml for release (#187)
* add example.yml * Update example.yml * add example.yml * change application.propertities * change application.propertities * delete provider nearbyrouter config --------- Co-authored-by: fredrikliu <[email protected]>
- Loading branch information
1 parent
1ca93e5
commit 43169a7
Showing
7 changed files
with
89 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
subdir: | ||
description: 'Subdirectory' | ||
required: false | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup JDK 8 | ||
uses: AdoptOpenJDK/install-jdk@v1 | ||
with: | ||
version: '8' | ||
architecture: x64 | ||
targets: 'JAVA_8_HOME' | ||
|
||
- name: Setup JDK 11 | ||
uses: AdoptOpenJDK/install-jdk@v1 | ||
with: | ||
version: '11' | ||
architecture: x64 | ||
targets: 'JAVA_11_HOME' | ||
|
||
- name: Setup JDK 17 | ||
uses: AdoptOpenJDK/install-jdk@v1 | ||
with: | ||
version: '17' | ||
architecture: x64 | ||
targets: 'JAVA_17_HOME;JAVA_HOME' | ||
|
||
- name: Install xmllint | ||
run: sudo apt-get install libxml2-utils | ||
|
||
- name: Get version | ||
id: get_version | ||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
with: | ||
config-inline: | | ||
insecure-entitlements = [ "network.host" ] | ||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.POLARIS_DOCKER_NAME }} | ||
password: ${{ secrets.POLARIS_DOCKER_PASSWORD }} | ||
|
||
- name: Build | ||
id: build | ||
run: | | ||
export use_docker_env=false | ||
pushd polaris-agent-build/bin | ||
bash ./build.sh | ||
bash ./build_example_docker.sh ${{ github.event.inputs.subdir }} | ||
8 changes: 8 additions & 0 deletions
8
.../spring-cloud-hoxton-examples/quickstart-examples/consumer/src/main/resources/polaris.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
consumer: | ||
serviceRouter: | ||
plugin: | ||
# 设置就近路由插件配置 | ||
nearbyBasedRouter: | ||
# 描述:就近路由的最小匹配级别,需要显示设置 | ||
# 范围: zone(腾讯云地域信息,eg: ap-guangzhou)、campus(腾讯云可用区, eg: ap-guangzhou-3) | ||
matchLevel: campus |
8 changes: 6 additions & 2 deletions
8
...-hoxton-examples/quickstart-examples/provider-a/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848 | ||
server.port=65001 | ||
spring.application.name=service-provider-hoxton | ||
spring.cloud.nacos.config.server-addr=127.0.0.1:8848 | ||
spring.cloud.nacos.config.enabled=false | ||
spring.cloud.nacos.discovery.enabled=false | ||
|
||
spring.cloud.nacos.username=nacos | ||
spring.cloud.nacos.password=nacos | ||
management.endpoints.web.exposure.include=* | ||
management.endpoint.health.show-details=always |
7 changes: 0 additions & 7 deletions
7
...ud-hoxton-examples/quickstart-examples/provider-a/src/main/resources/bootstrap.properties
This file was deleted.
Oops, something went wrong.
8 changes: 6 additions & 2 deletions
8
...-hoxton-examples/quickstart-examples/provider-b/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848 | ||
server.port=65004 | ||
spring.application.name=service-provider-hoxton | ||
spring.cloud.nacos.config.server-addr=127.0.0.1:8848 | ||
spring.cloud.nacos.config.enabled=false | ||
spring.cloud.nacos.discovery.enabled=false | ||
|
||
spring.cloud.nacos.username=nacos | ||
spring.cloud.nacos.password=nacos | ||
management.endpoints.web.exposure.include=* | ||
management.endpoint.health.show-details=always |
7 changes: 0 additions & 7 deletions
7
...ud-hoxton-examples/quickstart-examples/provider-b/src/main/resources/bootstrap.properties
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters