You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
552 B
YAML
19 lines
552 B
YAML
parameters:
|
|
Image: ''
|
|
Tag: ''
|
|
ContainerCommand: ''
|
|
|
|
steps:
|
|
- task: Docker@1
|
|
${{ if eq(parameters.Image, 'compile-farm') }}:
|
|
displayName: 'Build'
|
|
${{ if eq(parameters.Image, 'compile-farm-ci') }}:
|
|
displayName: 'Build and test'
|
|
inputs:
|
|
command: 'Run an image'
|
|
imageName: openttd/${{ parameters.Image }}:${{ parameters.Tag }}
|
|
volumes: '$(Build.SourcesDirectory):$(Build.SourcesDirectory)'
|
|
workingDirectory: '$(Build.SourcesDirectory)'
|
|
containerCommand: ${{ parameters.ContainerCommand }}
|
|
runInBackground: false
|