MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / dockerImageTagForPlatform

Function dockerImageTagForPlatform

packages/cli/src/commands/render.ts:1131–1137  ·  view source on GitHub ↗
(version: string, platform: string)

Source from the content-addressed store, hash-verified

1129}
1130
1131function dockerImageTagForPlatform(version: string, platform: string): string {
1132 // Suffix the tag with the arch so amd64 and arm64 images of the same
1133 // hyperframes version coexist in the local cache (a developer who flips
1134 // between hosts shouldn't have to rebuild).
1135 const archSuffix = platform === "linux/arm64" ? "-arm64" : "";
1136 return `${dockerImageTag(version)}${archSuffix}`;
1137}
1138
1139function ensureDockerImage(version: string, platform: string, quiet: boolean): string {
1140 const tag = dockerImageTagForPlatform(version, platform);

Callers 1

ensureDockerImageFunction · 0.85

Calls 1

dockerImageTagFunction · 0.85

Tested by

no test coverage detected