File tree Expand file tree Collapse file tree 1 file changed +4
-28
lines changed Expand file tree Collapse file tree 1 file changed +4
-28
lines changed Original file line number Diff line number Diff line change @@ -22,38 +22,14 @@ jobs:
2222 - ${{ if eq(parameters.arch, 'arm64') }} :
2323 - Agent.OSArchitecture -equals ARM64
2424 variables :
25- - ${{ if eq(parameters.arch, 'amd64') }} :
26- - name : Docker.CLI.Architecture
27- value : amd64
28- - ${{ if eq(parameters.arch, 'arm64') }} :
29- - name : Docker.CLI.Architecture
30- value : arm64
31- - ${{ if eq(parameters.arch, 'arm') }} :
32- - name : Docker.CLI.Architecture
33- value : armhf
3425 - name : Docker.Image.Architecture
3526 value : ${{ parameters.arch }}
3627
3728 steps :
38- - script : |
39- docker version
40- if [ "$?" -ne "0" ]; then
41- apt-get update
42- apt-get install \
43- apt-transport-https \
44- ca-certificates \
45- curl \
46- gnupg2 \
47- software-properties-common
48- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
49- add-apt-repository \
50- "deb [arch=$(Docker.CLI.Architecture)] https://download.docker.com/linux/ubuntu \
51- $(lsb_release -cs) \
52- stable"
53- apt-get update
54- apt-get install docker-ce docker-ce-cli containerd.io
55- fi
56- displayName: "Docker install"
29+ - task : DockerInstaller@0
30+ displayName : ' Docker CLI install'
31+ inputs :
32+ dockerVersion : ' 19.03.8-ce'
5733
5834 - task : Docker@2
5935 displayName : ' Build image'
You can’t perform that action at this time.
0 commit comments