about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-04-21 23:34:42 +0200
committerAlan Pearce2024-04-21 23:34:42 +0200
commit4eaccbeef49373774d0547c2b468d6cf79a6e5b3 (patch)
treeba3d19ea90e60a24ed1e25bdc402a5baacdee9a1
parent20b058a6167fd8bec908c22fb356f44c9e882327 (diff)
downloadwebsite-4eaccbeef49373774d0547c2b468d6cf79a6e5b3.tar.lz
website-4eaccbeef49373774d0547c2b468d6cf79a6e5b3.tar.zst
website-4eaccbeef49373774d0547c2b468d6cf79a6e5b3.zip
`just` work
-rwxr-xr-xjustfile5
1 files changed, 3 insertions, 2 deletions
diff --git a/justfile b/justfile
index d6c813f..a3b655f 100755
--- a/justfile
+++ b/justfile
@@ -46,10 +46,11 @@ print-docker-tag:
     @echo {{ docker-tag }}
 
 stream-to-registry *skopeo-flags="":
-    just docker-stream-fly | gzip --fast | skopeo {{ skopeo-flags }} copy --dest-precompute-digests docker-archive:/dev/stdin ("docker://" + fly-registry + ":" + docker-tag)
+    just docker-stream-fly | gzip --fast | skopeo {{ skopeo-flags }} copy --dest-precompute-digests docker-archive:/dev/stdin docker://{{ fly-registry }}:{{ docker-tag }}
 
+result := `readlink -f result`
 push-to-registry *skopeo-flags="":
-    echo skopeo {{ skopeo-flags }} copy --dest-precompute-digests `readlink -f result` ("docker://" + fly-registry + ":" + docker-tag)
+    skopeo {{ skopeo-flags }} copy --dest-precompute-digests docker-archive://{{ result }}  docker://{{ fly-registry }}:{{ docker-tag }}
 
 deploy registry-and-tag=(fly-registry + ":" + docker-tag):
     fly deploy --image {{ registry-and-tag }}