Try using ko to build images

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso 2025-03-19 08:51:09 -04:00
parent 1a13292c2d
commit 1efcb88261
No known key found for this signature in database
6 changed files with 166 additions and 11 deletions

13
.ko.yaml Normal file
View file

@ -0,0 +1,13 @@
defaultBaseImage: cgr.dev/chainguard/static
defaultPlatforms:
- linux/arm64
- linux/amd64
- linux/arm/v7
builds:
- id: anubis
main: ./cmd/anubis
ldflags:
- -s -w
- -extldflags "-static"
- -X github.com/TecharoHQ/anubis.Version={{.Env.VERSION}}