MCPcopy
hub / github.com/firecow/gitlab-ci-local / actualPull

Method actualPull

src/job.ts:1274–1281  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1272 const platformArgs = imagePlatform ? ["--platform", imagePlatform] : [];
1273 const platformSuffix = imagePlatform ? ` (${imagePlatform})` : "";
1274 const actualPull = async () => {
1275 await this.validateCiDependencyProxyServerAuthentication(imageToPull);
1276 const time = process.hrtime();
1277 await Utils.spawn([this.argv.containerExecutable, "pull", imageToPull, ...platformArgs]);
1278 const endTime = process.hrtime(time);
1279 writeStreams.stdout(chalk`${this.formattedJobName} {magentaBright pulled} ${imageToPull}${platformSuffix} in {magenta ${prettyHrtime(endTime)}}\n`);
1280 this.refreshLongRunningSilentTimeout(writeStreams);
1281 };
1282
1283 if (pullPolicy === "always") {
1284 await actualPull();

Callers

nothing calls this directly

Calls 4

spawnMethod · 0.80
stdoutMethod · 0.45

Tested by

no test coverage detected