1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/.ko.yaml
Jason Hall 6055713dfc
Use ko to build images (#4366)
This updates Makefile targets to build images using `docker buildx
build` to use `ko build` instead.

End-to-end tests are accomplished by building and loading the image
directly into the KinD cluster via ko.

Also:
- use GitHub Actions token to push to ghcr.io (setup-ko sets this up for us)
- allow forks to push to their forked repo's packages (useful for testing)

Signed-off-by: Jason Hall <jason@chainguard.dev>

Signed-off-by: Jason Hall <jason@chainguard.dev>
2022-08-25 20:32:40 +02:00

15 lines
233 B
YAML

builds:
- id: initContainer
main: ./cmd/initContainer
ldflags:
- "{{ .Env.LD_FLAGS }}"
- id: kyverno
main: ./cmd/kyverno
ldflags:
- "{{ .Env.LD_FLAGS }}"
- id: cli
main: ./cmd/cli
ldflags:
- "{{ .Env.LD_FLAGS }}"