fix(ci): install ko from releases manually

This commit is contained in:
Peter 2025-03-27 17:50:37 +01:00
parent c8b2b9d4e3
commit 06f770e83d
Signed by: prskr
GPG key ID: F56BED6903BC5E37

View file

@ -26,7 +26,18 @@ jobs:
cache-dependency-path: go.sum
check-latest: true
- uses: ko-build/setup-ko@v0.8
- name: Install ko
run: |
set -e
arch=$(uname -m)
case $arch in
aarch64)
arch="arm64"
;;
esac
curl -L $(curl -L -s https://api.github.com/repos/ko-build/ko/releases/latest | jq -r "[.assets[] | select(.name | endswith(\"Linux_${arch}.tar.gz\"))][0].browser_download_url") | tar -C /tmp -xzf -
mv /tmp/ko /usr/local/bin
ko version
- name: golangci-lint
uses: golangci/golangci-lint-action@v6