MCPcopy
hub / github.com/triggerdotdev/trigger.dev / extractImageDigest

Function extractImageDigest

packages/cli-v3/src/commands/deploy.ts:1075–1087  ·  view source on GitHub ↗
(outputs: string[])

Source from the content-addressed store, hash-verified

1073}
1074
1075function extractImageDigest(outputs: string[]) {
1076 const imageDigestRegex = /pushing manifest for .+(?<digest>sha256:[a-f0-9]{64})/;
1077
1078 for (const line of outputs) {
1079 const imageDigestMatch = line.match(imageDigestRegex);
1080
1081 const digest = imageDigestMatch?.groups?.digest;
1082
1083 if (digest) {
1084 return digest;
1085 }
1086 }
1087}
1088
1089function extractLogs(outputs: string[]) {
1090 // Remove empty lines

Callers 2

buildAndPushImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…