From 25a2b442a220184346e22a31a87c49a449ef636f Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 21 Apr 2024 23:18:53 +0200 Subject: `just` confusing --- justfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'justfile') diff --git a/justfile b/justfile index 627e417..d6c813f 100755 --- a/justfile +++ b/justfile @@ -45,13 +45,11 @@ docker-inspect image-path="result" *skopeo-flags="": print-docker-tag: @echo {{ docker-tag }} -# docker://some_docker_registry/myimage:tag -stream-to-registry registry-and-tag=("docker://" + fly-registry + ":" + docker-tag) *skopeo-flags="": - just docker-stream-fly | gzip --fast | skopeo {{ skopeo-flags }} copy --dest-precompute-digests docker-archive:/dev/stdin {{ registry-and-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) -# docker://some_docker_registry/myimage:tag -push-to-registry registry-and-tag=("docker://" + fly-registry + ":" + docker-tag) image-path=`readlink -f result` *skopeo-flags="": - skopeo {{ skopeo-flags }} copy --dest-precompute-digests {{ image-path }} {{ registry-and-tag }} +push-to-registry *skopeo-flags="": + echo skopeo {{ skopeo-flags }} copy --dest-precompute-digests `readlink -f result` ("docker://" + fly-registry + ":" + docker-tag) deploy registry-and-tag=(fly-registry + ":" + docker-tag): fly deploy --image {{ registry-and-tag }} -- cgit 1.4.1