mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-11 08:49:50 +00:00
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
|