mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-14 01:25:38 -05:00
38 lines
934 B
YAML
38 lines
934 B
YAML
name: $(Rev:r)
|
|
|
|
trigger:
|
|
batch: 'true'
|
|
branches:
|
|
include:
|
|
- master
|
|
paths:
|
|
include:
|
|
- Weather/SerialReader
|
|
|
|
pool:
|
|
name: Hosted Ubuntu 1604
|
|
|
|
steps:
|
|
- task: Docker@0
|
|
displayName: 'Build an image'
|
|
inputs:
|
|
containerregistrytype: 'Container Registry'
|
|
dockerRegistryConnection: 'Docker Hub'
|
|
dockerFile: 'Weather/SerialReader/Dockerfile'
|
|
imageName: 'ckaczor/home-monitor-weather-serialreader:$(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-serialreader:$(Build.BuildNumber)'
|
|
includeLatestTag: true
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
inputs:
|
|
PathtoPublish: 'Weather/SerialReader/deploy/service.yaml'
|
|
ArtifactName: 'service.yaml'
|
|
publishLocation: 'Container' |