18 changed files with 771 additions and 482 deletions
@ -0,0 +1,20 @@ |
|||
name: Unit Test |
|||
on: |
|||
push: |
|||
branches: |
|||
- main |
|||
|
|||
jobs: |
|||
AbpVnextPrc-CI: |
|||
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: Build |
|||
run: dotnet build aspnet-core/Lion.AbpPro.sln |
|||
- name: Test |
|||
run: dotnet test aspnet-core/services/test/Lion.AbpPro.Domain.Tests/Lion.AbpPro.Domain.Tests.csproj |
|||
@ -0,0 +1,26 @@ |
|||
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 }} |
|||
@ -1,48 +0,0 @@ |
|||
{ |
|||
"Logging": { |
|||
"LogLevel": { |
|||
"Default": "Information", |
|||
"Microsoft": "Warning", |
|||
"Microsoft.Hosting.Lifetime": "Information" |
|||
} |
|||
}, |
|||
"AllowedHosts": "*", |
|||
"App": { |
|||
"SelfUrl": "http://localhost:44314", |
|||
"CorsOrigins": "http://localhost:4200" |
|||
}, |
|||
"GlobalConfiguration": { |
|||
}, |
|||
"Routes": [ |
|||
{ |
|||
"DownstreamPathTemplate": "/{url}", |
|||
"DownstreamScheme": "http", |
|||
"ServiceName": "Project-Service", |
|||
"LoadBalancerOptions": { |
|||
"Type": "LeastConnection" |
|||
}, |
|||
"UpstreamPathTemplate": "/gateway/{url}", |
|||
"UpstreamHttpMethod": [ |
|||
"Get", |
|||
"Post", |
|||
"Put", |
|||
"Delete" |
|||
] |
|||
}, |
|||
{ |
|||
"DownstreamPathTemplate": "/{url}", |
|||
"DownstreamScheme": "ws", |
|||
"ServiceName": "Project-Service", |
|||
"LoadBalancerOptions": { |
|||
"Type": "LeastConnection" |
|||
}, |
|||
"UpstreamPathTemplate": "/ws/{url}", |
|||
"UpstreamHttpMethod": [ |
|||
"Get", |
|||
"Post", |
|||
"Put", |
|||
"Delete" |
|||
] |
|||
} |
|||
] |
|||
} |
|||
@ -1,2 +0,0 @@ |
|||
{ |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
{ |
|||
"App": { |
|||
"SelfUrl": "http://120.24.194.14:8013", |
|||
"CorsOrigins": "https://*.AbpPro.com,http://localhost:4200,https://localhost:44307,https://localhost:44315,http://120.24.194.14:8012,http://120.24.194.14:8011,http://120.24.194.14:8013" |
|||
}, |
|||
"ConnectionStrings": { |
|||
"Default": "Data Source=mysql;Database=LionAbpProDB;uid=root;pwd=1q2w3E*;charset=utf8mb4;Allow User Variables=true;AllowLoadLocalInfile=true" |
|||
}, |
|||
"Redis": { |
|||
"Configuration": "redis,password=1q2w3E*,defaultdatabase=1" |
|||
} |
|||
} |
|||
|
|||
@ -0,0 +1,63 @@ |
|||
version: '3' |
|||
services: |
|||
mysql: |
|||
image: mysql:5.7.26 |
|||
# network_mode: "host" # 如果需要容器使用宿主机IP(内网IP),则可以配置此项 |
|||
container_name: abp-pro-mysql # 指定容器名称,如果不设置此参数,则由系统自动生成 |
|||
restart: always # 设置容器自启模式 |
|||
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci # 设置utf8字符集 |
|||
environment: |
|||
- TZ=Asia/Shanghai # 设置容器时区与宿主机保持一致 |
|||
- MYSQL_ROOT_PASSWORD=1q2w3E* # 设置root密码 |
|||
volumes: |
|||
- /etc/localtime:/etc/localtime:ro # 设置容器时区与宿主机保持一致 |
|||
ports: |
|||
- "3307:3306" |
|||
networks: |
|||
- lionAbpPro |
|||
|
|||
redis: |
|||
image: redis:5.0.4 |
|||
container_name: abp-pro-redis |
|||
restart: always |
|||
command: redis-server # 启动redis命令 |
|||
environment: |
|||
- TZ=Asia/Shanghai |
|||
volumes: |
|||
- /etc/localtime:/etc/localtime:ro # 设置容器时区与宿主机保持一致 |
|||
ports: |
|||
- "6380:6379" |
|||
networks: |
|||
- lionAbpPro |
|||
|
|||
rabbitMq: |
|||
image: rabbitmq:management |
|||
container_name: abp-pro-rabbitMq |
|||
restart: always |
|||
ports: |
|||
- "5673:5672" |
|||
- "15673:15672" |
|||
environment: |
|||
- RABBITMQ_DEFAULT_USER=admin |
|||
- RABBITMQ_DEFAULT_PASS=1q2w3E* |
|||
networks: |
|||
- lionAbpPro |
|||
|
|||
consul: |
|||
image: consul |
|||
ports: |
|||
- 8300:8300 |
|||
- 8301:8301 |
|||
- 8301:8301/udp |
|||
- 8302:8302 |
|||
- 8302:8302/udp |
|||
- 8400:8400 |
|||
- 8500:8500 |
|||
- 53:53/udp |
|||
command: agent -server -bind=0.0.0.0 -client=0.0.0.0 -node=consul_Server1 -bootstrap-expect=1 -ui |
|||
networks: |
|||
- lionAbpPro |
|||
|
|||
networks: |
|||
lionAbpPro: |
|||
driver: bridge |
|||
File diff suppressed because it is too large
Loading…
Reference in new issue