Browse Source

Added Catalog API build pipeline and template

pull/1259/head
Tim McCarthy 5 years ago
parent
commit
82ed71dd44
2 changed files with 49 additions and 0 deletions
  1. +16
    -0
      build/aro/azure-devops/catalog-api/azure-pipelines.yml
  2. +33
    -0
      build/aro/azure-devops/webapp-build.yml

+ 16
- 0
build/aro/azure-devops/catalog-api/azure-pipelines.yml 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

+ 33
- 0
build/aro/azure-devops/webapp-build.yml 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

Loading…
Cancel
Save