sko
(simple ko) allows to build and pusblish Go applications directly without the need for Docker or a Dockerfile.
sko
is a stripped-down version of ko. sko
leaves out all the Kubernetes integrations and tries to offer more intuitive interface for the ko publish
command.
Use go install
:
go install github.com/dvob/sko@latest
Or download from releases:
curl -L -sS https://github.com/dvob/sko/releases/download/v0.0.1/sko_0.0.1_linux_amd64.tar.gz | tar -C ~/bin -xzf - sko
Build and upload to local docker daemon:
sko -local dvob/http-server .
sko -local dvob/foo ./cmd/foo
Build and push to a registry:
# docker hub
sko dvob/http-server .
# full qualified
sko quay.io/foo/bar .
Build and push certain tags:
sko -tag latest -tag v0.0.7 dvob/http-server .
Set username for push to registry.
sko -user dvob -password sUp3r53cret dvob/bla .
# or from environment
export SKO_USER=dvob
export SKO_PASSWORD=sUp3r53cret
sko dvob/blabla .
If no user and password are set sko
uses credentials from Docker (e.g. ~/.docker/config.json
):
For an example on how to use sko
in a Github Actions workflow check out http-server