(outputs: string[])
| 1073 | } |
| 1074 | |
| 1075 | function 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 | |
| 1089 | function extractLogs(outputs: string[]) { |
| 1090 | // Remove empty lines |
no outgoing calls
no test coverage detected
searching dependent graphs…