Added Catalog API build pipeline and template

This commit is contained in:
Tim McCarthy 2020-01-24 22:59:20 -08:00
parent a3c4bf7e8e
commit 82ed71dd44
2 changed files with 49 additions and 0 deletions

View File

@ -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

View 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