Skip to content

Commit

Permalink
Create .vsts-ci.docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
adventworks authored Jul 9, 2018
1 parent 8f1392e commit f7eb2d6
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .vsts-ci.docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
queue: 'Hosted Linux Preview'
variables:
buildConfiguration: 'Release'

steps:
- task: DotNetCoreCLI@2
inputs:
command: 'restore'
projects: '**/*.csproj'

- task: DotNetCoreCLI@2
inputs:
command: 'build'
projects: '**/*.csproj'
arguments: '--configuration $(buildConfiguration)'

- task: DotNetCoreCLI@2
inputs:
command: 'test'
projects: '**/*[Tt]ests/*.csproj'
arguments: '--configuration $(buildConfiguration)'

- task: DotNetCoreCLI@2
inputs:
command: 'publish'
arguments: '--configuration $(buildConfiguration) --output out'
zipAfterPublish: false

# Replace adventworks in the following with the name of your docker id.
- script: docker build -f Dockerfile -t adventworks/dotnetcore-sample .

0 comments on commit f7eb2d6

Please sign in to comment.