()
| 56 | } |
| 57 | |
| 58 | function resolveImageTag(): string { |
| 59 | const sha = readString(process.env.VERCEL_GIT_COMMIT_SHA); |
| 60 | if (sha) { |
| 61 | return sha.slice(0, 12); |
| 62 | } |
| 63 | const deploymentId = readString(process.env.VERCEL_DEPLOYMENT_ID); |
| 64 | if (deploymentId) { |
| 65 | return deploymentId.replace(/[^a-z0-9-_.]/gi, '-'); |
| 66 | } |
| 67 | return `build-${Date.now().toString(36)}`; |
| 68 | } |
| 69 | |
| 70 | async function buildAndPushImage(params: { |
| 71 | contextDir: string; |
no test coverage detected