about summary refs log tree commit diff stats
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'justfile')
-rwxr-xr-xjustfile45
1 files changed, 3 insertions, 42 deletions
diff --git a/justfile b/justfile
index 22503ee..306ef26 100755
--- a/justfile
+++ b/justfile
@@ -1,9 +1,5 @@
-#! /usr/bin/env -S nix develop . --command just --justfile
-
-fly-system := "x86_64-linux"
-fly-registry := "registry.fly.io/alanpearce-eu"
-docker-tag := env_var_or_default("DOCKER_TAG", `date +%Y%m%d%H%M%S` + "-" + `git rev-parse --short HEAD`)
-started-at := `date +%s`
+#! /usr/bin/env nix-shell
+#! nix-shell -i "just --justfile"
 
 default:
     @just --list --justfile {{ justfile() }} --unsorted
@@ -11,9 +7,6 @@ default:
 clean:
 	rm -r website
 
-check:
-    nix flake check . --print-build-logs
-
 check-licenses:
     nix run nixpkgs#go-licenses check ./...
 
@@ -21,48 +14,16 @@ check-links:
 	hyperlink website/public
 
 update-all:
+	npin update
     go get -u all
     gomod2nix --outdir nix
-    nix flake update
-
-watch-flake command:
-    watchexec --restart -w flake.nix -w flake.lock direnv exec . {{ command }}
 
 build:
     go run ./cmd/build
 
-nix-build what:
-    nix build .#{{ what }}
-
 dev:
 	systemfd -s http::3000 -- modd
 
-docker-stream system=(arch() + "-linux"):
-    @nix build --print-out-paths .#docker-stream-{{ system }} | sh
-
-docker-image system=(arch() + "-linux"):
-    nix build .#docker-image-{{ system }}
-
-docker-stream-fly:
-    just docker-stream {{ fly-system }}
-
-docker-image-fly: (docker-image fly-system)
-
-docker-inspect image-path="result":
-    skopeo inspect docker-archive:{{ image-path }}
-
-print-docker-tag:
-    @echo {{ fly-registry }}:{{ docker-tag }}
-
-stream-to-registry :
-    just docker-stream-fly | gzip --fast | skopeo copy --dest-precompute-digests docker-archive:/dev/stdin docker://{{ fly-registry }}:{{ docker-tag }}
-
-push-to-registry:
-    skopeo copy --dest-precompute-digests docker-archive://`readlink -f result`  docker://{{ fly-registry }}:{{ docker-tag }}
-
-deploy-fly registry-and-tag=(fly-registry + ":" + docker-tag):
-    fly deploy --image {{ registry-and-tag }}
-
 deploy-vercel-preview: clean build
 	vercel pull --environment=preview
 	vercel deploy