vscode-linux-build-agent/build-containers.yml

22 строки
715 B
YAML
Исходник Постоянная ссылка Обычный вид История

2019-05-08 12:03:37 +03:00
steps:
2019-05-08 12:07:38 +03:00
- ${{ if eq(parameters.qemu, 'true') }}:
2021-09-10 23:14:56 +03:00
- script: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
2019-05-08 12:07:38 +03:00
displayName: 'Register Docker QEMU'
2019-05-08 12:03:37 +03:00
- task: Docker@2
2020-09-09 14:06:07 +03:00
displayName: 'Build Container Image'
2019-05-08 12:03:37 +03:00
inputs:
containerRegistry: VSCodeHub
repository: 'vscode-linux-build-agent'
2019-05-08 12:07:38 +03:00
Dockerfile: ${{ parameters.arch }}/Dockerfile
buildContext: ${{ parameters.arch }}
tags: ${{ parameters.arch }}
2020-09-09 14:06:07 +03:00
command: build
- task: Docker@2
displayName: 'Push Container Image'
inputs:
containerRegistry: VSCodeHub
repository: 'vscode-linux-build-agent'
tags: ${{ parameters.arch }}
2020-09-09 14:06:07 +03:00
command: push
condition: and(succeeded(), eq(${{ parameters.release }}, true))