增加uat irc 自动打包成镜像
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
67819fc85d
commit
46af71e3df
|
@ -72,7 +72,7 @@ namespace IRaCIS.Core.SCP.Service
|
||||||
|
|
||||||
//using (@lock.Acquire())
|
//using (@lock.Acquire())
|
||||||
{
|
{
|
||||||
var findPatient = await _patientRepository.FirstOrDefaultAsync(t => t.PatientIdStr == patientIdStr);
|
var findPatient = await _patientRepository.FirstOrDefaultAsync(t => t.PatientIdStr == patientIdStr && t.TrialSiteId==trialSiteId );
|
||||||
var findStudy = await _studyRepository.FindAsync(studyId);
|
var findStudy = await _studyRepository.FindAsync(studyId);
|
||||||
var findSerice = await _seriesRepository.FindAsync(seriesId);
|
var findSerice = await _seriesRepository.FindAsync(seriesId);
|
||||||
var findInstance = await _instanceRepository.FindAsync(instanceId);
|
var findInstance = await _instanceRepository.FindAsync(instanceId);
|
||||||
|
|
|
@ -1,83 +1,31 @@
|
||||||
---
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: ssh
|
||||||
name: irc-netcore-api
|
name: ssh-linux-uat-irc-build-image
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: Linux
|
||||||
|
arch: 386
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
disable: true
|
disable: true
|
||||||
|
|
||||||
|
server:
|
||||||
|
host: 47.117.164.182
|
||||||
|
user: root
|
||||||
|
password:
|
||||||
|
from_secret: test_ssh_pwd
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: clone-repo
|
- name: build-uat-irc
|
||||||
image: alpine/git
|
|
||||||
pull: if-not-exists
|
|
||||||
volumes:
|
|
||||||
- name: irc-test-work
|
|
||||||
path: /work
|
|
||||||
commands:
|
commands:
|
||||||
- if [ ! -e /work/netcore-repo/.git ]; then
|
- cd /opt/1panel/devops/irc-uat-to-uat
|
||||||
git clone -b Test.IRC http://192.168.3.68:2000/XCKJ/irc-netcore-api.git /work/netcore-repo;
|
- sh build-irc-uat-image.sh v${DRONE_BUILD_NUMBER}
|
||||||
else
|
|
||||||
cd /work/netcore-repo;
|
|
||||||
git pull;
|
|
||||||
fi
|
|
||||||
|
|
||||||
- |
|
|
||||||
if [ ! -e Dockerfile ]; then
|
|
||||||
echo 'FROM mcr.microsoft.com/dotnet/aspnet:6.0
|
|
||||||
EXPOSE 80
|
|
||||||
WORKDIR /app
|
|
||||||
COPY publish .
|
|
||||||
ENTRYPOINT ["dotnet", "IRaCIS.Core.API.dll"]' > /work/Dockerfile
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: restore-publish
|
|
||||||
image: mcr.microsoft.com/dotnet/sdk:6.0
|
|
||||||
pull: if-not-exists
|
|
||||||
depends_on:
|
|
||||||
- clone-repo
|
|
||||||
volumes:
|
|
||||||
- name: nuget-packages
|
|
||||||
path: /root/.nuget/packages
|
|
||||||
- name: irc-test-work
|
|
||||||
path: /work
|
|
||||||
commands:
|
|
||||||
- cd /work/netcore-repo/IRaCIS.Core.API
|
|
||||||
- dotnet restore ./IRaCIS.Core.API.csproj
|
|
||||||
- rm -rf /work/publish
|
|
||||||
- cd /work/netcore-repo/IRaCIS.Core.API
|
|
||||||
- dotnet publish ./IRaCIS.Core.API.csproj -c Release --no-restore -o /work/publish
|
|
||||||
|
|
||||||
- name: docker-build
|
|
||||||
image: docker
|
|
||||||
pull: if-not-exists
|
|
||||||
depends_on:
|
|
||||||
- restore-publish
|
|
||||||
commands:
|
|
||||||
- cd /work
|
|
||||||
- docker build -t test-irc:v${DRONE_BUILD_NUMBER} .
|
|
||||||
volumes:
|
|
||||||
- name: irc-test-work
|
|
||||||
path: /work
|
|
||||||
- name: dockersock
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: nuget-packages
|
|
||||||
host:
|
|
||||||
path: /opt/cicd/nuget/packages
|
|
||||||
- name: irc-test-work
|
|
||||||
host:
|
|
||||||
path: /opt/cicd/irc-test
|
|
||||||
- name: dockersock
|
|
||||||
host:
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- Uat_IRC_Net8
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: ssh
|
type: ssh
|
||||||
name: ssh-linux-test-irc-publish
|
name: ssh-linux-test-irc-publish
|
||||||
|
@ -107,36 +55,6 @@ trigger:
|
||||||
- Test_IRC_Net8
|
- Test_IRC_Net8
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
kind: pipeline
|
|
||||||
type: ssh
|
|
||||||
name: test-irc-publish-image-push-aliyun
|
|
||||||
|
|
||||||
platform:
|
|
||||||
os: Linux
|
|
||||||
arch: 386
|
|
||||||
|
|
||||||
clone:
|
|
||||||
disable: true
|
|
||||||
|
|
||||||
server:
|
|
||||||
host: 192.168.3.68
|
|
||||||
user: root
|
|
||||||
password:
|
|
||||||
from_secret: local_pwd
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: build-and-push-image
|
|
||||||
commands:
|
|
||||||
- cd /opt/hang/netcore/irc-test
|
|
||||||
- sh test-irc.sh v${DRONE_BUILD_NUMBER}
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
branch:
|
|
||||||
- master
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: ssh
|
type: ssh
|
||||||
name: ssh-linux-test-study-publish
|
name: ssh-linux-test-study-publish
|
||||||
|
@ -146,10 +64,10 @@ platform:
|
||||||
arch: 386
|
arch: 386
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
disable: true
|
disable: true #禁用默认克隆
|
||||||
|
|
||||||
server:
|
server:
|
||||||
host: 123.56.94.154
|
host: 106.14.89.110
|
||||||
user: root
|
user: root
|
||||||
password:
|
password:
|
||||||
from_secret: test_ssh_pwd
|
from_secret: test_ssh_pwd
|
||||||
|
@ -163,4 +81,7 @@ steps:
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- Test.Study
|
- Test.Study
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue