Update build pipeline

This commit is contained in:
Pascal Vizeli 2019-07-09 15:32:09 +02:00
parent 3ce1049d21
commit 25745e9e27

View File

@ -8,15 +8,16 @@ trigger:
pr: none
variables:
- name: versionBuilder
value: '4.5'
value: '5.1'
- group: docker
- group: github
- group: twine
stages:
- stage: 'Validate'
jobs:
- job: 'VersionValidate'
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags')
pool:
@ -50,7 +51,8 @@ jobs:
exit 1
displayName: 'Check rights'
- stage: 'Build'
jobs:
- job: 'ReleasePython'
condition: and(startsWith(variables['Build.SourceBranch'], 'refs/tags'), succeeded('VersionValidate'))
dependsOn:
@ -72,8 +74,6 @@ jobs:
twine upload dist/* --skip-existing
displayName: 'Upload pypi'
- job: 'ReleaseDocker'
condition: and(startsWith(variables['Build.SourceBranch'], 'refs/tags'), succeeded('VersionValidate'))
dependsOn:
@ -124,7 +124,8 @@ jobs:
-t machine --docker-hub homeassistant
displayName: 'Build Release'
- stage: 'Publish'
jobs:
- job: 'ReleaseHassio'
condition: and(startsWith(variables['Build.SourceBranch'], 'refs/tags'), succeeded('ReleaseDocker'))
dependsOn: