fix: 为 runner 镜像补齐 git bundle 工具

This commit is contained in:
Codex
2026-06-01 11:54:52 +08:00
parent 744b2f7e77
commit 54f520692d
2 changed files with 3 additions and 1 deletions
@@ -13,6 +13,8 @@ import { assertNoSecretLeak, type SelfTestCase, type SelfTestContext } from "../
const execFile = promisify(execFileCallback);
const selfTest: SelfTestCase = async (context) => {
const containerfile = await readFile(path.join(context.root, "deploy/container/Containerfile"), "utf8");
assert.ok(containerfile.includes(" git ") && containerfile.includes(" openssh-client"), "runtime image must include git and openssh-client for ResourceBundleRef checkout");
const fakeKubectl = path.join(context.tmp, "fake-kubectl-hwlab.js");
const createdManifest = path.join(context.tmp, "created-hwlab-runner-job.json");
await writeFile(fakeKubectl, `#!/usr/bin/env bun