summaryrefslogtreecommitdiff
path: root/azure-pipelines/templates/linux-build.yml
blob: 0e4fffefb0e2499217c570f1b3873c17bbe90a2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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