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