mirror of
https://github.com/ko-build/ko.git
synced 2025-11-26 22:40:38 +02:00
* Move docs to ko.build * rm ko_deps.md * remove trailing whitespace * add go-import meta tag * update mkdocs.yml * update mkdocs.yml * remove duplicate main.html * update go.sum
1.2 KiB
1.2 KiB
Installation
Install from GitHub Releases
VERSION=TODO # choose the latest version
OS=Linux # or Darwin, Windows
ARCH=x86_64 # or arm64, i386, s390x
curl -L https://github.com/google/ko/releases/download/v${VERSION}/ko_${VERSION}_${OS}_${ARCH}.tar.gz | tar xzf - ko
chmod +x ./ko
Install using Homebrew
brew install ko
Install on Alpine Linux
Installation on Alpine requires using the testing repository
echo https://dl-cdn.alpinelinux.org/alpine/edge/testing/ >> /etc/apk/repositories
apk update
apk add ko
Build and Install from source
With Go 1.16+, build and install the latest released version:
go install github.com/google/ko@latest
Setup on GitHub Actions
You can use the setup-ko action to install ko and setup auth to GitHub Container Registry in a GitHub Action workflow:
steps:
- uses: imjasonh/setup-ko@v0.4