Skip to content

Commit 62e69ad

Browse files
authored
Merge pull request moby#5418 from castrombithisamm/update-windows-doc
docs: windows: add script to pick latest version
2 parents 2bb7d9c + 8e3bded commit 62e69ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/windows.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ You will be asked to restart your machine, do so, and then continue with the res
4545
1. Start the `containerd` service, if not yet started.
4646
1. Download and extract:
4747
```powershell
48-
$version = "v0.13.0-rc2" # specify the release version, v0.13+
48+
$url = "https://api.github.com/repos/moby/buildkit/releases/latest"
49+
$version = (Invoke-RestMethod -Uri $url -UseBasicParsing).tag_name
4950
$arch = "amd64" # arm64 binary available too
5051
curl.exe -LO https://github.com/moby/buildkit/releases/download/$version/buildkit-$version.windows-$arch.tar.gz
5152
# there could be another `.\bin` directory from containerd instructions

0 commit comments

Comments
 (0)