Skip to content

Instantly share code, notes, and snippets.

@Geertvdc
Created October 21, 2018 11:36
Show Gist options
  • Select an option

  • Save Geertvdc/ec628ed89da52c5934fbd570c2f3a61b to your computer and use it in GitHub Desktop.

Select an option

Save Geertvdc/ec628ed89da52c5934fbd570c2f3a61b to your computer and use it in GitHub Desktop.
full containerized .Net Core build
resources:
containers:
- container: dotnet-geert
image: 'microsoft/dotnet:2.1-sdk'
options: -v /home/vsts/NuGet/Cache:/NuGet/Cache
env:
NUGET_PACKAGES: '/NuGet/Cache'
pool: 'Geerts-Linux-Agents'
container: dotnet-geert
variables:
buildConfiguration: 'Release'
system.debug: true
steps:
- script: |
cd ContainerizedBuildSample
dotnet build --configuration $(buildConfiguration)
dotnet test --configuration $(buildConfiguration) --logger trx --filter "category!=integration"
dotnet publish --configuration $(buildConfiguration)
displayName: 'Build & Test'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment