about summary refs log tree commit diff stats
path: root/.ko.yaml
diff options
context:
space:
mode:
authorAlan Pearce2024-06-25 18:02:18 +0200
committerAlan Pearce2024-06-25 18:09:28 +0200
commit398210c8ce4140de12720d3f16cc88284a146005 (patch)
tree2d8144b52870c97f8cd9b86738fd51b50cda0bf5 /.ko.yaml
parentcd1125a213d742b5a89e8b60f0c7aafef13b8783 (diff)
downloadwebsite-398210c8ce4140de12720d3f16cc88284a146005.tar.lz
website-398210c8ce4140de12720d3f16cc88284a146005.tar.zst
website-398210c8ce4140de12720d3f16cc88284a146005.zip
build with ko instead of nix
Diffstat (limited to '.ko.yaml')
-rw-r--r--.ko.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/.ko.yaml b/.ko.yaml
new file mode 100644
index 0000000..27d9e7d
--- /dev/null
+++ b/.ko.yaml
@@ -0,0 +1,11 @@
+defaultPlatforms:
+  - linux/amd64
+builds:
+  - id: alanpearce-eu
+    main: cmd/server
+    flags:
+      - -tags
+      - embed
+    ldflags:
+      - -X internal/server.CommitSHA={{ .Git.FullCommit }}
+      - -X internal/server.ShortSHA={{ .Git.ShortCommit }}