1
0
Fork 0
mirror of https://github.com/imjasonh/miniko synced 2026-07-07 00:12:26 +00:00
No description
Find a file
Jason Hall f5cd3e483f
Merge pull request #1 from developer-guy/main
chore: upgrade ko deps, and go version
2022-10-24 09:22:05 -04:00
go.mod chore: upgrade ko deps, and go version 2022-10-24 10:45:44 +03:00
go.sum chore: upgrade ko deps, and go version 2022-10-24 10:45:44 +03:00
main.go initial commit 2021-12-17 16:10:50 -05:00
README.md initial commit 2021-12-17 16:10:50 -05:00

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.