about summary refs log tree commit diff stats
path: root/justfile
diff options
context:
space:
mode:
authorAlan Pearce2024-06-25 18:02:18 +0200
committerAlan Pearce2024-06-25 18:09:28 +0200
commit398210c8ce4140de12720d3f16cc88284a146005 (patch)
tree2d8144b52870c97f8cd9b86738fd51b50cda0bf5 /justfile
parentcd1125a213d742b5a89e8b60f0c7aafef13b8783 (diff)
downloadwebsite-398210c8ce4140de12720d3f16cc88284a146005.tar.lz
website-398210c8ce4140de12720d3f16cc88284a146005.tar.zst
website-398210c8ce4140de12720d3f16cc88284a146005.zip
build with ko instead of nix
Diffstat (limited to 'justfile')
-rwxr-xr-xjustfile7
1 files changed, 1 insertions, 6 deletions
diff --git a/justfile b/justfile
index 4e8ff77..385f439 100755
--- a/justfile
+++ b/justfile
@@ -19,7 +19,6 @@ check-links:
 update-all:
 	npin update
 	go get -u all
-	gomod2nix --outdir nix
 
 build:
 	templ generate
@@ -32,11 +31,7 @@ ci: build check-links
 
 cd *DEPLOY_FLAGS:
 	fly auth docker
-	nix-build -A docker-stream-amd64-linux --no-out-link | sh | gzip --fast | \
-		skopeo copy --dest-precompute-digests \
-			docker-archive:/dev/stdin \
-			docker://{{ docker-registry }}:{{ docker-tag }}
-	fly deploy --image {{ docker-registry }}:{{ docker-tag }} {{ DEPLOY_FLAGS }}
+	fly deploy --image $(KO_DOCKER_REPO={{ docker-registry }} ko build --bare ./cmd/server) {{ DEPLOY_FLAGS }}
 
 deploy-vercel-preview: build
 	vercel pull --environment=preview