build: use one bundle validation path for all architectures (#3106)

This commit is contained in:
whyour
2026-10-24 19:59:41 +08:00
committed by GitHub
parent 6862ad4f6c
commit d895fbba36
+5 -7
View File
@@ -6,13 +6,11 @@ ENV QL_BUNDLE_BASE_IMAGE=${BASE_IMAGE}
ARG TARGETARCH ARG TARGETARCH
ARG TARGETVARIANT ARG TARGETVARIANT
USER root USER root
RUN ulimit -c 0; if [ "$TARGETARCH/$TARGETVARIANT" = arm/v6 ]; then \ RUN ulimit -c 0; \
if [ "$TARGETARCH/$TARGETVARIANT" = arm/v6 ]; then \
export QEMU_CPU=arm1176; \ export QEMU_CPU=arm1176; \
node --jitless /ql/scripts/build-upgrade-bundle.cjs /ql /out && \ set -- --jitless; \
for archive in /out/*.tar.gz; do \ fi; \
node /ql/shell/install-bundle.cjs --root /tmp/ql-bundle-offline-smoke --file "$archive" --install && \ node "$@" /ql/scripts/build-upgrade-bundle.cjs /ql /out
rm -rf /tmp/ql-bundle-offline-smoke || exit 1; \
done; \
else node /ql/scripts/build-upgrade-bundle.cjs /ql /out; fi
FROM scratch FROM scratch
COPY --from=bundle /out/ / COPY --from=bundle /out/ /