Skip to content

Instantly share code, notes, and snippets.

@KaiWalter
Created August 4, 2020 07:21
Show Gist options
  • Save KaiWalter/610e77cf9afb584b81cd926c8c3fdc00 to your computer and use it in GitHub Desktop.
Save KaiWalter/610e77cf9afb584b81cd926c8c3fdc00 to your computer and use it in GitHub Desktop.
Build API Management Resource Kit
name: $(Date:yyyyMMdd)$(Rev:.r)
# -------------------------------------------------------------------------------
trigger:
batch: "true"
branches:
include:
- master
- feature/*
- hotfix/*
- release/*
resources:
repositories:
- repository: apimrk
type: github
endpoint: githubcom
name: Azure/azure-api-management-devops-resource-kit
variables:
- name: sdkVersion
value: 2.1.808
pool:
vmImage: ubuntu-latest
workspace:
clean: all
steps:
- checkout: self
- checkout: apimrk
- task: UseDotNet@2
displayName: 'use .NET Core SDK $(sdkVersion)'
inputs:
packageType: sdk
version: $(sdkVersion)
installationPath: $(Agent.ToolsDirectory)/dotnet
- task: DotNetCoreCLI@2
displayName: build
inputs:
command: "build"
projects: "**/apimtemplate.sln"
- task: DotNetCoreCLI@2
displayName: "publish"
inputs:
command: publish
publishWebProjects: false
projects: "**/apimtemplate.sln"
arguments: "--configuration Release --output $(Agent.BuildDirectory)/rk --no-restore"
modifyOutputPath: false
zipAfterPublish: false
- task: PublishBuildArtifacts@1
displayName: publish artifact resource apimrk
inputs:
PathtoPublish: $(Agent.BuildDirectory)/rk
ArtifactName: apimrk
publishLocation: Container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment