Skip to content

Commit 88f37f2

Browse files
committed
build(just): use --skip-if-exists and surface push errors
`--skip-if-identical` was too strict for non-reproducible wasm builds — every CI re-run produces a different layer digest at the same source version, so the strict policy bricks every CI-only push. Switch to --skip-if-exists (silent skip when a tag already exists, regardless of content). Also restructure the OUTPUT capture to echo on failure — set -e + $() previously swallowed the actbuild error message.
1 parent b23f605 commit 88f37f2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ publish:
3737
OUTPUT=$({{actbuild}} push {{wasm}} "{{registry}}/$NAME:$VERSION" \
3838
--skip-if-exists \
3939
--also-tag latest \
40-
--source "$SOURCE" 2>&1)
40+
--source "$SOURCE" 2>&1) || { echo "$OUTPUT" >&2; exit 1; }
4141
echo "$OUTPUT"
42-
DIGEST=$(echo "$OUTPUT" | grep "^Digest:" | awk '{print $2}')
42+
DIGEST=$(echo "$OUTPUT" | grep "^Digest:" | awk '{print $2}' || true)
4343
if [ -n "${GITHUB_OUTPUT:-}" ]; then
4444
echo "image={{registry}}/$NAME" >> "$GITHUB_OUTPUT"
4545
echo "digest=$DIGEST" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)