fix: keep env-reuse boot commit current

This commit is contained in:
lyon
2026-06-26 16:58:51 +08:00
parent 53b58d88ef
commit b4113907f0
3 changed files with 52 additions and 9 deletions
+2 -2
View File
@@ -572,7 +572,7 @@ function bootMetadataForService({ args, catalog, deployService, serviceId, sourc
environmentInputHash: catalogService?.environmentInputHash ?? null,
codeInputHash: catalogService?.codeInputHash ?? null,
bootRepo: catalogService?.bootRepo ?? args.sourceRepo,
bootCommit: catalogService?.bootCommit ?? source.full,
bootCommit: source.full,
bootSh: catalogService?.bootSh ?? bootShForService(deployService, serviceId)
};
}
@@ -693,7 +693,7 @@ function runtimeArtifactForService({ catalog, deploy, serviceId, source, registr
return {
image: runtimeImage,
imageTag: imageTagFromReference(environmentImage) ?? source.imageTag ?? source.short,
commit: catalogService?.bootCommit ?? source.full,
commit: source.full,
runtimeMode: v02EnvReuseRuntimeMode,
environmentDigest: catalogService?.environmentDigest ?? catalogService?.digest ?? null
};