blob: b6a780c220204ae871167591370120b9a80b1d05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
#!/usr/bin/env nix-shell
#!nix-shell -i "just --justfile"
docker-registry := "registry.fly.io/alanpearce-eu"
docker-tag := `date +%Y%m%d%H%M%S`
default:
@just --list --justfile {{ justfile() }} --unsorted
clean:
rm -fr website
check-licenses:
nix run nixpkgs#go-licenses check ./...
check-links:
hyperlink website/public
update-all:
npin update
go get -u all
gomod2nix --outdir nix
build:
templ generate
go run ./cmd/build
dev:
modd
ci: build check-links
cd:
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-vercel-preview: build
vercel pull --environment=preview
vercel deploy
deploy-vercel: build check-links
vercel pull --environment=production
vercel deploy --prod
deploy-netlify-preview: build
netlify deploy
deploy-netlify: build check-links
netlify deploy --prodIfUnlocked
deploy-preview: deploy-vercel-preview deploy-netlify-preview
deploy-production: deploy-vercel deploy-netlify
|