Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/imjasonh/miniko


https://github.com/imjasonh/miniko

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# miniko demo

This demonstrates how to use `github.com/google/ko` packages as a libary to
build and publish Go code from your own Go binaries, similar to how the `ko`
CLI itself works.

```
go run ./
```

This will build and push this code to `gcr.io/imjasonh` (unless it fails
because you're not authorized), based on `gcr.io/distroless/static:nonroot`.

The image will be tagged with a nonsense commit SHA, and that value will be set
in a `const` in the code using `ldflags`.