Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imjasonh/miniko
https://github.com/imjasonh/miniko
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/imjasonh/miniko
- Owner: imjasonh
- Created: 2021-12-20T18:28:51.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-24T13:22:05.000Z (about 2 years ago)
- Last Synced: 2024-10-14T16:51:08.093Z (3 months ago)
- Language: Go
- Size: 203 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`.