Skip to content

Commit

Permalink
Changes GHA windows to build docker CLI from source
Browse files Browse the repository at this point in the history
- Unknown integrity of docker-cli-builder binary: StefanScherer/docker-cli-builder#13

Signed-off-by: Micah Young <ymicah@vmware.com>
  • Loading branch information
Micah Young committed Mar 25, 2021
1 parent c98e9ce commit 93aa9e2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,23 @@ jobs:
go-version: '1.15'
- name: Install jq
run: choco install jq
- name: BUGFIX - Downgrade Docker CLI if 20.10.0
- name: BUGFIX - Upgrade Docker CLI if 20.10.0
shell: powershell
env:
DOCKER_VERSION: 20.10.5
run: |
$dockerVersion=(docker version -f '{{.Client.Version}}')
if ($dockerVersion -ne "20.10.0") {
echo Newer docker version has been released: $dockerVersion
echo Remove this step if greater than: 20.10.5
}
curl.exe -o "$env:USERPROFILE\go\bin\docker.exe" -L https://github.com/StefanScherer/docker-cli-builder/releases/download/19.03.14/docker.exe
$env:GOPATH="$env:USERPROFILE\go"
git clone -q --branch=v${env:DOCKER_VERSION} --single-branch https://github.com/docker/cli.git ${env:GOPATH}\src\github.com\docker\cli
cd ${env:GOPATH}\src\github.com\docker\cli
powershell -File .\scripts\make.ps1 -Binary
move .\build\docker.exe ${env:GOPATH}\bin\docker.exe
- name: Add runner IP to daemon insecure-registries
shell: powershell
run: |
Expand Down

0 comments on commit 93aa9e2

Please sign in to comment.