Skip to content
/ sko Public

A stripped-down version of ko which only supports to build and publish images

License

Notifications You must be signed in to change notification settings

dvob/sko

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sko

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.

Install

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

Usage

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):

Github Actions

For an example on how to use sko in a Github Actions workflow check out http-server

About

A stripped-down version of ko which only supports to build and publish images

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages