`just` work
Alan Pearce alan@alanpearce.eu
Sun, 21 Apr 2024 23:34:42 +0200
1 files changed, 3 insertions(+), 2 deletions(-)
jump to
M justfile → 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 }}