fix(deploy): build checked-out source without GitLab API request
CI / check (push) Successful in 1m15s
CI / deploy (push) Successful in 1m36s

This commit is contained in:
Simo committed 2026-09-06 19:48:49 +02:00
1 parent 193b6686a9
commit 814d8650be
2 files changed
+9 -6

No files matched your search

+8
View File
@@ -31,3 +31,11 @@ it("preserves production runtime configuration and recent cache", () => {
);
expect(deploy).not.toContain("docker volume prune");
});
it("builds the checked out source without fetching a moving remote branch", () => {
const dockerfile = readFileSync("Dockerfile", "utf8");
expect(dockerfile).toContain("COPY . .");
expect(dockerfile).not.toMatch(
/^ADD\s+https?:\/\/.*(?:repository|branches)/m,
);
expect(dockerfile).not.toMatch(/^RUN\s+git\s+(?:pull|fetch|clone)\b/m);
});