add CD to fly
1 file changed, 13 insertions(+), 2 deletions(-)
changed files
M justfile → justfile
@@ -1,5 +1,8 @@ -#! /usr/bin/env nix-shell -#! nix-shell -i "just --justfile" +#!/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@@ -26,6 +29,14 @@ dev: modd ci: build check-links + +cd: + fly auth docker + nix-build -A docker-stream-amd64-linux | 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