mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-18 00:02:48 +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`;
|
await $({ stdio: "inherit" })`docker manifest inspect ${IMAGE}:${sourceCommit}-arm64`;
|
||||||
console.log(`==> Both images exist`);
|
console.log(`==> Both images exist`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`==> Error inspecting images:`, error);
|
console.warn(`⚠️ Docker images ${IMAGE}:${sourceCommit}-{amd64,arm64} not found - skipping Docker tagging`);
|
||||||
throw new Error(
|
console.warn(` To enable Docker tagging, build and push images first, then retry the release.`);
|
||||||
`Images ${IMAGE}:${sourceCommit}-{amd64,arm64} do not exist on Docker Hub. Error: ${error}`,
|
return;
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create and push manifest with version
|
// Create and push manifest with version
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue