aboutsummaryrefslogtreecommitdiff
path: root/.ko.yaml
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-03-19 08:51:09 -0400
committerXe Iaso <me@xeiaso.net>2025-03-19 09:10:29 -0400
commit1efcb882619a90ed0f9355cd8485f7aa80ebb324 (patch)
tree16ced941f86d0923623e0ae5fb53e4977f1ecb2c /.ko.yaml
parent1a13292c2deed38dac8a307ed2cae43bba355b5b (diff)
downloadanubis-1efcb882619a90ed0f9355cd8485f7aa80ebb324.tar.xz
anubis-1efcb882619a90ed0f9355cd8485f7aa80ebb324.zip
Try using ko to build images
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to '.ko.yaml')
-rw-r--r--.ko.yaml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.ko.yaml b/.ko.yaml
new file mode 100644
index 0000000..35c1fa0
--- /dev/null
+++ b/.ko.yaml
@@ -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}}