about summary refs log tree commit diff stats
path: root/justfile
diff options
context:
space:
mode:
authorAlan Pearce2024-06-18 12:20:06 +0200
committerAlan Pearce2024-06-18 12:22:12 +0200
commitcf0da6d13edc55c003564f31d56a659cfa681e0c (patch)
treefc39a25b1a69b7922106b538c80fc2ecd9bb08ae /justfile
parentf690e8cb7a820b0685b98f83a6761cfc169487e4 (diff)
downloadwebsite-cf0da6d13edc55c003564f31d56a659cfa681e0c.tar.lz
website-cf0da6d13edc55c003564f31d56a659cfa681e0c.tar.zst
website-cf0da6d13edc55c003564f31d56a659cfa681e0c.zip
remove flake and docker setup
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