Skip to content

Commit

Permalink
Use task to build and push to DockerHub
Browse files Browse the repository at this point in the history
  • Loading branch information
adventworks committed Jul 24, 2018
1 parent 79a047c commit 5ed9aba
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .vsts-ci.docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,18 @@ steps:
arguments: '--configuration $(buildConfiguration) --output out'
zipAfterPublish: false

- script: docker build -f Dockerfile -t adventworks/dotnetcore-sample .
- task: Docker@0
displayName: Build an image
inputs:
containerregistrytype: 'Container Registry'
dockerRegistryConnection: 'Adventworks DockerHub' # change this to the name of your DockerHub service connection

- task: Docker@0
displayName: Push an image
inputs:
containerregistrytype: 'Container Registry'
dockerRegistryConnection: 'Adventworks DockerHub' # change this to the name of your DockerHub service connection
action: 'Push an image'

- script: |
docker-compose -f docs/docker-compose.yml --project-directory . -p docs up -d |
Expand Down

0 comments on commit 5ed9aba

Please sign in to comment.