mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-02-16 10:58:32 -05:00
Add build YAML
This commit is contained in:
32
Weather/SerialReader/azure-pipelines.yml
Normal file
32
Weather/SerialReader/azure-pipelines.yml
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
name: 1.0.$(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.BuildId)'
|
||||||
|
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.BuildId)'
|
||||||
|
includeLatestTag: true
|
||||||
Reference in New Issue
Block a user