Update weather service build

This commit is contained in:
2019-07-25 21:30:37 -04:00
parent 53508480d2
commit c2220a3c0f
4 changed files with 139 additions and 128 deletions

View File

@@ -0,0 +1,43 @@
name: $(Rev:r)
trigger:
batch: 'true'
branches:
include:
- master
paths:
include:
- Weather/Service
pool:
name: Hosted Ubuntu 1604
steps:
- task: Docker@0
displayName: 'Build an image'
inputs:
containerregistrytype: 'Container Registry'
dockerRegistryConnection: 'Docker Hub'
dockerFile: 'Weather/Service/Dockerfile'
imageName: 'ckaczor/home-monitor-weather-service:$(Build.BuildNumber)'
includeLatestTag: true
- task: Docker@0
displayName: 'Push an image'
inputs:
containerregistrytype: 'Container Registry'
dockerRegistryConnection: 'Docker Hub'
action: 'Push an image'
imageName: 'ckaczor/home-monitor-weather-service:$(Build.BuildNumber)'
includeLatestTag: true
- task: Bash@3
inputs:
targetType: 'inline'
script: 'sed -i s/#BUILD_BUILDNUMBER#/$BUILD_BUILDNUMBER/ Weather/Service/deploy/manifest.yaml'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: 'Weather/Service/deploy/manifest.yaml'
ArtifactName: 'Manifest'
publishLocation: 'Container'