-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathbuild-containers.yml
More file actions
27 lines (27 loc) · 961 Bytes
/
build-containers.yml
File metadata and controls
27 lines (27 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
steps:
- ${{ if eq(parameters.qemu, 'true') }}:
- task: AzureCLI@2
displayName: 'Register Docker QEMU'
inputs:
azureSubscription: vscode
scriptType: pscore
scriptLocation: inlineScript
inlineScript: |
az acr login --name vscodehub
docker run --rm --privileged vscodehub.azurecr.io/multiarch/qemu-user-static:latest --reset -p yes
- task: 1ES.BuildContainerImage@1
inputs:
image: vscodehub.azurecr.io/vscode-linux-build-agent:${{ parameters.arch }}
path: ${{ parameters.arch }}
dockerfile: ${{ parameters.arch }}/Dockerfile
enableNetwork: true
- task: AzureCLI@2
displayName: Azure CLI
inputs:
azureSubscription: vscode
scriptType: pscore
scriptLocation: inlineScript
inlineScript: |
az acr login --name vscodehub
docker push vscodehub.azurecr.io/vscode-linux-build-agent:${{ parameters.arch }}
condition: and(succeeded(), eq(${{ parameters.release }}, true))