fix(deploy): build checked-out source without GitLab API request
This commit is contained in:
1 parent
193b6686a9
commit
814d8650be
2 files changed
+9
-6
No files matched your search
@@ -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);
|
||||
});
|
||||
Reference in new issue
Block a user