From c261ecdfbc624d99fe53e6aa0501ad3d64373186 Mon Sep 17 00:00:00 2001 From: shinyobjectz Date: Thu, 3 Dec 2026 21:18:41 -0800 Subject: [PATCH] box.sh image on a clean tree: its label's dirty test ended the script under set -e, saying nothing --- sdk/cloud/deploy/fly/box.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/cloud/deploy/fly/box.sh b/sdk/cloud/deploy/fly/box.sh index 7bf78f10..52aceff7 100755 --- a/sdk/cloud/deploy/fly/box.sh +++ b/sdk/cloud/deploy/fly/box.sh @@ -78,7 +78,8 @@ image) dirty=$([ -n "$(git -C "$HERE" status --porcelain -- .)" ] && echo true || echo false) fi has_app "$IMAGE_APP" || fly apps create "$IMAGE_APP" --org "$ORG" > /dev/null - label=v$version-${commit:0:10}$([ "$dirty" = true ] && echo "-dirty-$(date +%s)") + # (|| true: on a clean tree the test fails, and set -e ended the script there with nothing said) + label=v$version-${commit:0:10}$([ "$dirty" = true ] && echo "-dirty-$(date +%s)" || true) (cd "$src" && fly deploy --build-only --push -a "$IMAGE_APP" -c deploy/fly/image.toml --dockerfile deploy/fly/Dockerfile \ --image-label "$label" --build-arg RAEA_VERSION="$version" --build-arg COMMIT="$commit" --build-arg DIRTY="$dirty" .) >&2 echo "registry.fly.io/$IMAGE_APP:$label" | tee "$CONF/fly-image"