all repos — website @ 4064f933a965f2fb2ce43d3c2d5bd54ccd33978c

My website

build: fix errors executing justfile
Alan Pearce alan@alanpearce.eu
Sun, 19 May 2024 11:43:26 +0200
commit

4064f933a965f2fb2ce43d3c2d5bd54ccd33978c

parent

7dc19d115c5f3b012f96284adc8cadb9b703d6db

1 files changed, 2 insertions(+), 3 deletions(-)

jump to
M justfilejustfile
@@ -2,7 +2,7 @@ #! /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 --utc +%Y%m%d%H%M%S` + "-" + `git rev-parse --short HEAD`)
+docker-tag := env_var_or_default("DOCKER_TAG", `date +%Y%m%d%H%M%S` + "-" + `git rev-parse --short HEAD`)
 version := `sentry-cli releases propose-version`
 environment := "production"
 started-at := `date +%s`
@@ -65,9 +65,8 @@ stream-to-registry : sentry-create-release && sentry-finalise-release
     just docker-stream-fly | gzip --fast | skopeo copy --dest-precompute-digests docker-archive:/dev/stdin docker://{{ fly-registry }}:{{ docker-tag }}
 
-result := `readlink -f result`
 push-to-registry: sentry-create-release && sentry-finalise-release
-    skopeo copy --dest-precompute-digests docker-archive://{{ result }}  docker://{{ fly-registry }}:{{ docker-tag }}
+    skopeo copy --dest-precompute-digests docker-archive://`readlink -f result`  docker://{{ fly-registry }}:{{ docker-tag }}
 
 sentry-create-release:
     sentry-cli releases new {{ version }}