Added Catalog API build pipeline and template
This commit is contained in:
parent
a3c4bf7e8e
commit
82ed71dd44
@ -0,0 +1,16 @@
|
|||||||
|
name: 'Catalog-API-Build'
|
||||||
|
variables:
|
||||||
|
ProjectName: Catalog.API
|
||||||
|
trigger:
|
||||||
|
branches:
|
||||||
|
include:
|
||||||
|
- master
|
||||||
|
- dev
|
||||||
|
paths:
|
||||||
|
include:
|
||||||
|
- src/BuildingBlocks/*
|
||||||
|
- src/Services/Catalog/*
|
||||||
|
jobs:
|
||||||
|
- template: ../webapp-build.yml
|
||||||
|
parameters:
|
||||||
|
ProjectName: Basket.API
|
33
build/aro/azure-devops/webapp-build.yml
Normal file
33
build/aro/azure-devops/webapp-build.yml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
parameters:
|
||||||
|
ProjectName: ''
|
||||||
|
jobs:
|
||||||
|
- job: Restore, Build, and Publish
|
||||||
|
pool:
|
||||||
|
name: Hosted Ubuntu 1604
|
||||||
|
steps:
|
||||||
|
- task: DotNetCoreCLI@2
|
||||||
|
displayName: 'dotnet restore'
|
||||||
|
inputs:
|
||||||
|
command: restore
|
||||||
|
projects: '**/$(ProjectName).csproj'
|
||||||
|
feedsToUse: config
|
||||||
|
nugetConfigPath: NuGet.config
|
||||||
|
- task: DotNetCoreCLI@2
|
||||||
|
displayName: 'dotnet build'
|
||||||
|
inputs:
|
||||||
|
projects: '**/$(ProjectName).csproj'
|
||||||
|
arguments: '--configuration Release'
|
||||||
|
feedsToUse: config
|
||||||
|
nugetConfigPath: NuGet.config
|
||||||
|
- task: DotNetCoreCLI@2
|
||||||
|
displayName: 'dotnet publish'
|
||||||
|
inputs:
|
||||||
|
command: publish
|
||||||
|
publishWebProjects: false
|
||||||
|
projects: '**/$(ProjectName).csproj'
|
||||||
|
arguments: '--configuration Release --output $(Build.ArtifactStagingDirectory)/$(ProjectName) /p:MicrosoftNETPlatformLibrary=Microsoft.NETCore.App'
|
||||||
|
zipAfterPublish: false
|
||||||
|
modifyOutputPath: false
|
||||||
|
feedsToUse: config
|
||||||
|
nugetConfigPath: NuGet.config
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user