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