fix(hwlab): vendor yaml in D601 tools image (#812)

Co-authored-by: Codex <codex@noreply.local>
This commit is contained in:
Lyon
2026-06-24 11:01:01 +08:00
committed by GitHub
parent e0497b282e
commit 5939f3c7fd
2 changed files with 10 additions and 2 deletions
+2
View File
@@ -152,6 +152,8 @@ targets:
- COPY --from=python-runtime /usr/local /usr/local
- COPY --from=docker-cli-runtime /usr/local/bin/docker /usr/local/bin/docker
- RUN ln -sf /usr/local/bin/bun /usr/local/bin/bunx
- ENV HWLAB_CI_NODE_DEPS=/opt/hwlab-ci-node-deps/node_modules
- RUN set -eu; mkdir -p /opt/hwlab-ci-node-deps; cd /opt/hwlab-ci-node-deps; npm init -y >/dev/null; if [ -n "${HTTP_PROXY:-}" ]; then npm config set proxy "$HTTP_PROXY"; fi; if [ -n "${HTTPS_PROXY:-}" ]; then npm config set https-proxy "$HTTPS_PROXY"; fi; npm install --omit=dev --ignore-scripts --no-audit --no-fund yaml@2.8.3; node --input-type=module -e 'import("yaml").then(() => console.log("yaml-ok"))'
- RUN node --version && npm --version && bun --version && git --version && python3 --version && docker --version && ssh -V
buildArgs:
NODE_IMAGE: docker.io/library/node:22-bookworm-slim