Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
Pascal Vizeli 2019-04-14 01:01:24 +02:00
parent c91fce3281
commit 00af027e51

View File

@ -43,11 +43,26 @@ jobs:
displayName: 'Run JQ'
- job: 'Hadolint'
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads')
pool:
vmImage: 'ubuntu-16.04'
steps:
- script: sudo docker pull hadolint/hadolint:v1.16.3
displayName: 'Install Hadolint'
- script: |
sudo docker run --rm -i \
-v $(pwd)/.hadolint.yaml:/.hadolint.yaml:ro \
hadolint/hadolint:v1.16.3 < Dockerfile
displayName: 'Run Hadolint'
- job: 'ReleaseDEV'
condition: eq(variables['Build.SourceBranchName'], 'dev')
dependsOn:
- 'JQ'
- 'Tox'
- 'Hadolint'
pool:
vmImage: 'ubuntu-16.04'
strategy:
@ -82,6 +97,7 @@ jobs:
dependsOn:
- 'JQ'
- 'Tox'
- 'Hadolint'
pool:
vmImage: 'ubuntu-16.04'
strategy: