(tag: string)
| 1120 | } |
| 1121 | |
| 1122 | function dockerImageExists(tag: string): boolean { |
| 1123 | try { |
| 1124 | execFileSync("docker", ["image", "inspect", tag], { stdio: "pipe", timeout: 10_000 }); |
| 1125 | return true; |
| 1126 | } catch { |
| 1127 | return false; |
| 1128 | } |
| 1129 | } |
| 1130 | |
| 1131 | function dockerImageTagForPlatform(version: string, platform: string): string { |
| 1132 | // Suffix the tag with the arch so amd64 and arm64 images of the same |