mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 12:17:14 +03:00
23 lines
640 B
YAML
23 lines
640 B
YAML
|
parameters:
|
||
|
docker: '' # defaults for any parameters that aren't specified
|
||
|
dockerTag: 'master'
|
||
|
name: ''
|
||
|
vmImage: 'Ubuntu-16.04'
|
||
|
|
||
|
jobs:
|
||
|
|
||
|
- job: ${{ parameters.name }}
|
||
|
pool:
|
||
|
vmImage: ${{ parameters.vmImage }}
|
||
|
|
||
|
steps:
|
||
|
- script: |
|
||
|
docker pull pythonpillow/${{ parameters.docker }}:${{ parameters.dockerTag }}
|
||
|
displayName: 'Docker pull'
|
||
|
|
||
|
- script: |
|
||
|
# The Pillow user in the docker container is UID 1000
|
||
|
sudo chown -R 1000 $(Build.SourcesDirectory)
|
||
|
docker run -v $(Build.SourcesDirectory):/Pillow pythonpillow/${{ parameters.docker }}:${{ parameters.dockerTag }}
|
||
|
displayName: 'Docker build'
|