Add build pipline definition files.

This commit is contained in:
Jingjing Li 2019-04-16 12:28:45 +08:00
Родитель f960888ffc
Коммит d0c54885c6
4 изменённых файлов: 259 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,74 @@
pool:
name: Hosted Ubuntu 1604
steps:
- task: DotNetCoreCLI@2
displayName: 'dotnet publish Frontend'
inputs:
command: publish
publishWebProjects: false
projects: src/Frontend/Frontend.csproj
arguments: '-c Release -o $(System.DefaultWorkingDirectory)/src/allbuild/app/Frontend'
zipAfterPublish: false
modifyOutputPath: false
workingDirectory: src
- task: DotNetCoreCLI@2
displayName: 'dotnet publish Bootstrap'
inputs:
command: publish
publishWebProjects: false
projects: src/Bootstrap/Bootstrap.csproj
arguments: '-c Release -o $(System.DefaultWorkingDirectory)/src/allbuild/app/Bootstrap'
zipAfterPublish: false
modifyOutputPath: false
workingDirectory: src
- task: DotNetCoreCLI@2
displayName: 'dotnet publish Dashboard'
inputs:
command: publish
publishWebProjects: false
projects: src/Services/Dashboard/Dashboard.csproj
arguments: '-c Release -o $(System.DefaultWorkingDirectory)/src/allbuild/app/Dashboard'
zipAfterPublish: false
modifyOutputPath: false
workingDirectory: src
- task: DotNetCoreCLI@2
displayName: 'dotnet publish JobMonitor'
inputs:
command: publish
publishWebProjects: false
projects: src/Services/JobMonitor/JobMonitor.csproj
arguments: '-c Release -o $(System.DefaultWorkingDirectory)/src/allbuild/app/JobMonitor'
zipAfterPublish: false
modifyOutputPath: false
workingDirectory: src
- task: DotNetCoreCLI@2
displayName: 'dotnet publish TaskDispatcher'
inputs:
command: publish
publishWebProjects: false
projects: src/Services/TaskDispatcher/TaskDispatcher.csproj
arguments: '-c Release -o $(System.DefaultWorkingDirectory)/src/allbuild/app/TaskDispatcher'
zipAfterPublish: false
modifyOutputPath: false
workingDirectory: src
- task: DotNetCoreCLI@2
displayName: 'dotnet publish NodeAgent'
inputs:
command: publish
publishWebProjects: false
projects: src/Services/NodeAgent/NodeAgent.csproj
arguments: '-c Release -o $(System.DefaultWorkingDirectory)/src/allbuild/app/NodeAgent'
zipAfterPublish: false
modifyOutputPath: false
workingDirectory: src
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: app'
inputs:
PathtoPublish: src/allbuild/app
ArtifactName: app

Просмотреть файл

@ -0,0 +1,63 @@
pool:
name: Hosted Ubuntu 1604
steps:
- task: DownloadBuildArtifacts@0
displayName: 'Download Services Build Artifacts'
inputs:
buildType: specific
project: '6b66ec3e-9200-4ddf-9c78-1ee1d55592f6'
pipeline: 10
artifactName: app
downloadPath: '$(System.DefaultWorkingDirectory)/src/allbuild/'
- task: Docker@1
displayName: 'Build runtime image'
inputs:
azureSubscriptionEndpoint: 'BigCompS-Int2 (01b6a57a-5aef-40e2-8af7-562a2f81462e)'
azureContainerRegistry: hpcacmbuild.azurecr.io
dockerFile: 'src/Docker/Dockerfile-runtime'
imageName: 'public/hpcpack/hpcacm/runtime:$(Build.BuildId)'
includeLatestTag: true
- task: Docker@1
displayName: 'Pubilsh runtime image'
inputs:
azureSubscriptionEndpoint: 'BigCompS-Int2 (01b6a57a-5aef-40e2-8af7-562a2f81462e)'
azureContainerRegistry: hpcacmbuild.azurecr.io
command: 'Push an image'
imageName: 'public/hpcpack/hpcacm/runtime:$(Build.BuildId)'
- task: Docker@1
displayName: 'Publish runtime image with latest tag'
inputs:
azureSubscriptionEndpoint: 'BigCompS-Int2 (01b6a57a-5aef-40e2-8af7-562a2f81462e)'
azureContainerRegistry: hpcacmbuild.azurecr.io
command: 'Push an image'
imageName: 'public/hpcpack/hpcacm/runtime:latest'
- task: Docker@1
displayName: 'Build base image'
inputs:
azureSubscriptionEndpoint: 'BigCompS-Int2 (01b6a57a-5aef-40e2-8af7-562a2f81462e)'
azureContainerRegistry: hpcacmbuild.azurecr.io
dockerFile: src/Docker/Dockerfile
imageName: 'public/hpcpack/hpcacm:$(Build.BuildId)'
includeLatestTag: true
useDefaultContext: false
buildContext: src
- task: Docker@1
displayName: 'Push base image'
inputs:
azureSubscriptionEndpoint: 'BigCompS-Int2 (01b6a57a-5aef-40e2-8af7-562a2f81462e)'
azureContainerRegistry: hpcacmbuild.azurecr.io
command: 'Push an image'
imageName: 'public/hpcpack/hpcacm:$(Build.BuildId)'
- task: Docker@1
displayName: 'Push base image with latest tag'
inputs:
azureSubscriptionEndpoint: 'BigCompS-Int2 (01b6a57a-5aef-40e2-8af7-562a2f81462e)'
azureContainerRegistry: hpcacmbuild.azurecr.io
command: 'Push an image'
imageName: 'public/hpcpack/hpcacm:latest'

Просмотреть файл

@ -0,0 +1,39 @@
pool:
name: Hosted Ubuntu 1604
steps:
- task: DownloadBuildArtifacts@0
displayName: 'Download Portal Build Artifacts'
inputs:
buildType: specific
project: '6b66ec3e-9200-4ddf-9c78-1ee1d55592f6'
pipeline: 11
specificBuildWithTriggering: true
artifactName: dist
downloadPath: '$(System.DefaultWorkingDirectory)/src/portal/'
- task: Docker@1
displayName: 'Build frontend image'
inputs:
azureSubscriptionEndpoint: 'BigCompS-Int2 (01b6a57a-5aef-40e2-8af7-562a2f81462e)'
azureContainerRegistry: hpcacmbuild.azurecr.io
dockerFile: 'src/Docker/Dockerfile-frontend'
imageName: 'public/hpcpack/hpcacm/frontend:$(Build.BuildId)'
includeLatestTag: true
useDefaultContext: false
buildContext: src
- task: Docker@1
displayName: 'Push frontend image'
inputs:
azureSubscriptionEndpoint: 'BigCompS-Int2 (01b6a57a-5aef-40e2-8af7-562a2f81462e)'
azureContainerRegistry: hpcacmbuild.azurecr.io
command: 'Push an image'
imageName: 'public/hpcpack/hpcacm/frontend:$(Build.BuildId)'
- task: Docker@1
displayName: 'Push frontend image with latest tag'
inputs:
azureSubscriptionEndpoint: 'BigCompS-Int2 (01b6a57a-5aef-40e2-8af7-562a2f81462e)'
azureContainerRegistry: hpcacmbuild.azurecr.io
command: 'Push an image'
imageName: 'public/hpcpack/hpcacm/frontend:latest'

Просмотреть файл

@ -0,0 +1,83 @@
pool:
name: Hosted Ubuntu 1604
steps:
- task: Docker@1
displayName: 'Build jobmonitor image'
inputs:
azureSubscriptionEndpoint: 'BigCompS-Int2 (01b6a57a-5aef-40e2-8af7-562a2f81462e)'
azureContainerRegistry: hpcacmbuild.azurecr.io
dockerFile: 'src/Docker/Dockerfile-jobmonitor'
imageName: 'public/hpcpack/hpcacm/jobmonitor:$(Build.BuildId)'
includeLatestTag: true
useDefaultContext: false
buildContext: src
- task: Docker@1
displayName: 'Push jobmonitor image'
inputs:
azureSubscriptionEndpoint: 'BigCompS-Int2 (01b6a57a-5aef-40e2-8af7-562a2f81462e)'
azureContainerRegistry: hpcacmbuild.azurecr.io
command: 'Push an image'
imageName: 'public/hpcpack/hpcacm/jobmonitor:$(Build.BuildId)'
- task: Docker@1
displayName: 'Push jobmonitor image with latest tag'
inputs:
azureSubscriptionEndpoint: 'BigCompS-Int2 (01b6a57a-5aef-40e2-8af7-562a2f81462e)'
azureContainerRegistry: hpcacmbuild.azurecr.io
command: 'Push an image'
imageName: 'public/hpcpack/hpcacm/jobmonitor:latest'
- task: Docker@1
displayName: 'Build taskdispatcher image'
inputs:
azureSubscriptionEndpoint: 'BigCompS-Int2 (01b6a57a-5aef-40e2-8af7-562a2f81462e)'
azureContainerRegistry: hpcacmbuild.azurecr.io
dockerFile: 'src/Docker/Dockerfile-taskdispatcher'
imageName: 'public/hpcpack/hpcacm/taskdispatcher:$(Build.BuildId)'
includeLatestTag: true
useDefaultContext: false
buildContext: src
- task: Docker@1
displayName: 'Push taskdispatcher image'
inputs:
azureSubscriptionEndpoint: 'BigCompS-Int2 (01b6a57a-5aef-40e2-8af7-562a2f81462e)'
azureContainerRegistry: hpcacmbuild.azurecr.io
command: 'Push an image'
imageName: 'public/hpcpack/hpcacm/taskdispatcher:$(Build.BuildId)'
- task: Docker@1
displayName: 'Push taskdispatcher image with latest tag'
inputs:
azureSubscriptionEndpoint: 'BigCompS-Int2 (01b6a57a-5aef-40e2-8af7-562a2f81462e)'
azureContainerRegistry: hpcacmbuild.azurecr.io
command: 'Push an image'
imageName: 'public/hpcpack/hpcacm/taskdispatcher:latest'
- task: Docker@1
displayName: 'Build dashboard image'
inputs:
azureSubscriptionEndpoint: 'BigCompS-Int2 (01b6a57a-5aef-40e2-8af7-562a2f81462e)'
azureContainerRegistry: hpcacmbuild.azurecr.io
dockerFile: 'src/Docker/Dockerfile-dashboard'
imageName: 'public/hpcpack/hpcacm/dashboard:$(Build.BuildId)'
includeLatestTag: true
useDefaultContext: false
buildContext: src
- task: Docker@1
displayName: 'Push dashboard image'
inputs:
azureSubscriptionEndpoint: 'BigCompS-Int2 (01b6a57a-5aef-40e2-8af7-562a2f81462e)'
azureContainerRegistry: hpcacmbuild.azurecr.io
command: 'Push an image'
imageName: 'public/hpcpack/hpcacm/dashboard:$(Build.BuildId)'
- task: Docker@1
displayName: 'Push dashboard image with latest tag'
inputs:
azureSubscriptionEndpoint: 'BigCompS-Int2 (01b6a57a-5aef-40e2-8af7-562a2f81462e)'
azureContainerRegistry: hpcacmbuild.azurecr.io
command: 'Push an image'
imageName: 'public/hpcpack/hpcacm/dashboard:latest'