22 строки
715 B
YAML
22 строки
715 B
YAML
|
steps:
|
||
|
- ${{ if eq(parameters.qemu, 'true') }}:
|
||
|
- script: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||
|
displayName: 'Register Docker QEMU'
|
||
|
- task: Docker@2
|
||
|
displayName: 'Build Container Image'
|
||
|
inputs:
|
||
|
containerRegistry: VSCodeHub
|
||
|
repository: 'vscode-linux-build-agent'
|
||
|
Dockerfile: ${{ parameters.arch }}/Dockerfile
|
||
|
buildContext: ${{ parameters.arch }}
|
||
|
tags: ${{ parameters.arch }}
|
||
|
command: build
|
||
|
- task: Docker@2
|
||
|
displayName: 'Push Container Image'
|
||
|
inputs:
|
||
|
containerRegistry: VSCodeHub
|
||
|
repository: 'vscode-linux-build-agent'
|
||
|
tags: ${{ parameters.arch }}
|
||
|
command: push
|
||
|
condition: and(succeeded(), eq(${{ parameters.release }}, true))
|