Merge branch 'Test.IRC' of http://192.168.3.69:3000/XCKJ/irc-netcore-api into Test.IRC
commit
13d709c88d
|
@ -7,7 +7,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ConnectionStrings": {
|
"ConnectionStrings": {
|
||||||
"RemoteNew": "Server=123.56.94.154,1433\\MSSQLSERVER;Database=IRaCIS_New_Tet;User ID=sa;Password=dev123456DEV;TrustServerCertificate=true",
|
"RemoteNew": "Server=123.56.94.154,1433\\MSSQLSERVER;Database=Test.IRC;User ID=sa;Password=dev123456DEV;TrustServerCertificate=true",
|
||||||
"Hangfire": "Server=123.56.94.154,1433\\MSSQLSERVER;Database=Hangfire_IRaCIS;User ID=sa;Password=dev123456DEV;TrustServerCertificate=true"
|
"Hangfire": "Server=123.56.94.154,1433\\MSSQLSERVER;Database=Hangfire_IRaCIS;User ID=sa;Password=dev123456DEV;TrustServerCertificate=true"
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
|
@ -0,0 +1,105 @@
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: irc-netcore-api
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: docker-build
|
||||||
|
image: docker
|
||||||
|
pull: if-not-exists
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
- name: cached_nuget_packages
|
||||||
|
path: /drone/nuget_packages
|
||||||
|
commands:
|
||||||
|
- date +%H:%M:%S
|
||||||
|
- pwd
|
||||||
|
- docker build -t Test.Study .
|
||||||
|
- date +%H:%M:%S
|
||||||
|
|
||||||
|
- name: docker-deploy
|
||||||
|
image: docker
|
||||||
|
pull: if-not-exists
|
||||||
|
depends_on:
|
||||||
|
- docker-build
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
commands:
|
||||||
|
- date +%H:%M:%S
|
||||||
|
- docker rm -f test-study-container
|
||||||
|
- docker run -itd -e TZ=Asia/Shanghai -e ASPNETCORE_ENVIRONMENT=Test_Study --restart=always --name test-study-container -p 8030:80 Test.Study
|
||||||
|
- date +%H:%M:%S
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: cached_nuget_packages
|
||||||
|
host:
|
||||||
|
path: /mnt/f/docker_publish/nuget_packages
|
||||||
|
- name: dockersock
|
||||||
|
host:
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
kind: pipeline
|
||||||
|
type: ssh
|
||||||
|
name: ssh-windows-test-study-publish
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: windows
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
|
clone:
|
||||||
|
disable: true #禁用默认克隆
|
||||||
|
|
||||||
|
server:
|
||||||
|
host: 123.56.94.154
|
||||||
|
user: Administrator
|
||||||
|
password: WHxckj2019
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: publish-test-study
|
||||||
|
commands:
|
||||||
|
- Start-Process "C:\CICD\Test.Study\netcore_Publish.bat" -Wait
|
||||||
|
- cd C:\CICD\Test.Study\netcore_repo
|
||||||
|
- dotnet restore .\IRaCIS.Core.API\IRaCIS.Core.API.csproj --packages C:\Users\Administrator\.nuget\packages
|
||||||
|
- dotnet publish .\IRaCIS.Core.API\IRaCIS.Core.API.csproj -c Release --no-restore --packages C:\Users\Administrator\.nuget\packages -o D:\Develop\Test_Study_PublishSite\IRaCIS.NetCore.API
|
||||||
|
- Start-Service -Name "Test_Study_API"
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- Test.Study
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
kind: pipeline
|
||||||
|
type: ssh
|
||||||
|
name: ssh-windows-test-irc-publish
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: windows
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
|
clone:
|
||||||
|
disable: true #禁用默认克隆
|
||||||
|
|
||||||
|
server:
|
||||||
|
host: 123.56.94.154
|
||||||
|
user: Administrator
|
||||||
|
password: WHxckj2019
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: publish-test-irc
|
||||||
|
commands:
|
||||||
|
- C:\CICD\Test.IRC\netcore_Publish.ps1
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- Test.IRC
|
Loading…
Reference in New Issue