summaryrefslogtreecommitdiff
path: root/azure-pipelines/templates/linux-build.yml
diff options
context:
space:
mode:
Diffstat (limited to 'azure-pipelines/templates/linux-build.yml')
-rw-r--r--azure-pipelines/templates/linux-build.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/azure-pipelines/templates/linux-build.yml b/azure-pipelines/templates/linux-build.yml
new file mode 100644
index 000000000..0e4fffefb
--- /dev/null
+++ b/azure-pipelines/templates/linux-build.yml
@@ -0,0 +1,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