5 changed files with 51 additions and 89 deletions
@ -1,52 +0,0 @@ |
|||
name: Build-Dokcer |
|||
on: |
|||
push: |
|||
tags: |
|||
- "*" |
|||
|
|||
jobs: |
|||
Push-DockerHub: |
|||
runs-on: ubuntu-latest |
|||
steps: |
|||
- uses: actions/checkout@v2 |
|||
- name: Install Dotnet 6.x |
|||
uses: actions/setup-dotnet@v1 |
|||
with: |
|||
dotnet-version: "6.0" |
|||
include-prerelease: True |
|||
- name: 设置标签 |
|||
id: vars |
|||
run: echo ::set-output name=tag::${GITHUB_REF:10} |
|||
|
|||
- name: 编译 |
|||
run: dotnet build aspnet-core/Lion.AbpPro.sln |
|||
|
|||
- name: 发布HostApi |
|||
run: cd aspnet-core/services/host/Lion.AbpPro.HttpApi.Host && |
|||
dotnet publish -c release -o publish && |
|||
docker build -t abp-vnext-pro-api:${{ steps.vars.outputs.tag }} . |
|||
|
|||
- name: 发布IdentityServer4 |
|||
run: cd aspnet-core/services/host/Lion.AbpPro.IdentityServer && |
|||
dotnet publish -c release -o publish && |
|||
docker build -t abp-vnext-pro-id4:${{ steps.vars.outputs.tag }} . |
|||
|
|||
- name: 发布WebGateway |
|||
run: cd aspnet-core/gateways/Lion.AbpPro.WebGateway && |
|||
dotnet publish -c release -o publish && |
|||
docker build -t abp-vnext-pro-web-gateway:${{ steps.vars.outputs.tag }} . |
|||
|
|||
- name: 登录Docker |
|||
run: docker login -u zzzwangjun -p ${{secrets.dockerHubPassword}} |
|||
|
|||
- name: HostApi镜像推送到DockerHub |
|||
run: docker tag abp-vnext-pro-api:${{ steps.vars.outputs.tag }} zzzwangjun/abp-vnext-pro-api:${{ steps.vars.outputs.tag }} && |
|||
docker push zzzwangjun/abp-vnext-pro-api:${{ steps.vars.outputs.tag }} |
|||
|
|||
- name: IdentityServer4镜像推送到DockerHub |
|||
run: docker tag abp-vnext-pro-id4:${{ steps.vars.outputs.tag }} zzzwangjun/abp-vnext-pro-id4:${{ steps.vars.outputs.tag }} && |
|||
docker push zzzwangjun/abp-vnext-pro-id4:${{ steps.vars.outputs.tag }} |
|||
|
|||
- name: WebGateway镜像推送到DockerHub |
|||
run: docker tag abp-vnext-pro-web-gateway:${{ steps.vars.outputs.tag }} zzzwangjun/abp-vnext-pro-web-gateway:${{ steps.vars.outputs.tag }} && |
|||
docker push zzzwangjun/abp-vnext-pro-web-gateway:${{ steps.vars.outputs.tag }} |
|||
@ -1,26 +0,0 @@ |
|||
name: Vben2.7 |
|||
on: |
|||
push: |
|||
tags: |
|||
- "*" |
|||
jobs: |
|||
Push-DockerHub: |
|||
runs-on: ubuntu-latest |
|||
steps: |
|||
- uses: actions/checkout@v2 |
|||
- name: Use Node.js |
|||
uses: actions/setup-node@v1 |
|||
with: |
|||
node-version: 14.x |
|||
- name: Set Tag |
|||
id: vars |
|||
run: echo ::set-output name=tag::${GITHUB_REF:10} |
|||
|
|||
- name: Build And Push Docker Hub |
|||
run: cd vben271 && |
|||
npm install && |
|||
npm run build && |
|||
docker login -u zzzwangjun -p ${{secrets.dockerHubPassword}} && |
|||
docker build -t abp-vnext-pro-ui:${{ steps.vars.outputs.tag }} . && |
|||
docker tag abp-vnext-pro-ui:${{ steps.vars.outputs.tag }} zzzwangjun/abp-vnext-pro-ui:${{ steps.vars.outputs.tag }} && |
|||
docker push zzzwangjun/abp-vnext-pro-ui:${{ steps.vars.outputs.tag }} |
|||
@ -0,0 +1,48 @@ |
|||
{ |
|||
"Logging": { |
|||
"LogLevel": { |
|||
"Default": "Information", |
|||
"Microsoft": "Warning", |
|||
"Microsoft.Hosting.Lifetime": "Information" |
|||
} |
|||
}, |
|||
"AllowedHosts": "*", |
|||
"App": { |
|||
"SelfUrl": "http://120.24.194.14:8014", |
|||
"CorsOrigins": "http://localhost:4200,http://120.24.194.14:8012,http://120.24.194.14:8011,http://120.24.194.14:8013" |
|||
}, |
|||
"GlobalConfiguration": { |
|||
}, |
|||
"Routes": [ |
|||
{ |
|||
"DownstreamPathTemplate": "/{url}", |
|||
"DownstreamScheme": "http", |
|||
"ServiceName": "AbpPro-Service", |
|||
"LoadBalancerOptions": { |
|||
"Type": "LeastConnection" |
|||
}, |
|||
"UpstreamPathTemplate": "/gateway/{url}", |
|||
"UpstreamHttpMethod": [ |
|||
"Get", |
|||
"Post", |
|||
"Put", |
|||
"Delete" |
|||
] |
|||
}, |
|||
{ |
|||
"DownstreamPathTemplate": "/{url}", |
|||
"DownstreamScheme": "ws", |
|||
"ServiceName": "AbpPro-Service", |
|||
"LoadBalancerOptions": { |
|||
"Type": "LeastConnection" |
|||
}, |
|||
"UpstreamPathTemplate": "/ws/{url}", |
|||
"UpstreamHttpMethod": [ |
|||
"Get", |
|||
"Post", |
|||
"Put", |
|||
"Delete" |
|||
] |
|||
} |
|||
] |
|||
} |
|||
Loading…
Reference in new issue