Skip to content

Instantly share code, notes, and snippets.

@Geertvdc
Created October 21, 2018 11:10
Show Gist options
  • Save Geertvdc/1498b51af928f7249bbd94848dc63fa1 to your computer and use it in GitHub Desktop.
Save Geertvdc/1498b51af928f7249bbd94848dc63fa1 to your computer and use it in GitHub Desktop.
Basic dockerized build pipeline
resources:
containers:
- container: dotnet-geert
image: 'microsoft/dotnet:2.1-sdk'
pool: 'Hosted Ubuntu 1604'
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