mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 06:04:43 +00:00
fix: skip Docker tagging gracefully when images don't exist
This commit is contained in:
parent
50b5289e47
commit
c7fbb33fed
1 changed files with 3 additions and 4 deletions
|
|
@ -25,10 +25,9 @@ export async function tagDocker(opts: ReleaseOpts) {
|
|||
await $({ stdio: "inherit" })`docker manifest inspect ${IMAGE}:${sourceCommit}-arm64`;
|
||||
console.log(`==> Both images exist`);
|
||||
} catch (error) {
|
||||
console.error(`==> Error inspecting images:`, error);
|
||||
throw new Error(
|
||||
`Images ${IMAGE}:${sourceCommit}-{amd64,arm64} do not exist on Docker Hub. Error: ${error}`,
|
||||
);
|
||||
console.warn(`⚠️ Docker images ${IMAGE}:${sourceCommit}-{amd64,arm64} not found - skipping Docker tagging`);
|
||||
console.warn(` To enable Docker tagging, build and push images first, then retry the release.`);
|
||||
return;
|
||||
}
|
||||
|
||||
// Create and push manifest with version
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue