fix: pass env recipe into v02 artifact publish
This commit is contained in:
@@ -1871,6 +1871,7 @@ function plannerFieldsFor(servicePlan) {
|
||||
componentInputHash: servicePlan.componentInputHash ?? null,
|
||||
runtimeMode: servicePlan.runtimeMode ?? "service-image",
|
||||
envReuse: servicePlan.envReuse === true,
|
||||
envReuseRecipe: servicePlan.envReuseRecipe ?? null,
|
||||
envChanged: servicePlan.envChanged ?? null,
|
||||
codeChanged: servicePlan.codeChanged ?? null,
|
||||
environmentInputHash: servicePlan.environmentInputHash ?? null,
|
||||
|
||||
@@ -136,6 +136,7 @@ test("artifact reuse paths preserve catalog provenance instead of current planne
|
||||
const artifactPublish = await readFile("scripts/artifact-publish.mjs", "utf8");
|
||||
assert.match(artifactPublish, /const catalogProvenance = serviceImageCatalogProvenance\(catalogService\);/u);
|
||||
assert.match(artifactPublish, /\.\.\.catalogProvenance,[\s\S]{0,80}buildBackend: "reused-catalog"/u);
|
||||
assert.match(artifactPublish, /envReuseRecipe: servicePlan\.envReuseRecipe \?\? null/u);
|
||||
assert.match(artifactPublish, /componentInputHash: serviceResultValue\(env, service\.serviceId, "COMPONENT_INPUT_HASH"\) \?\? \(reusedServiceImage \? null : service\.componentInputHash \?\? null\)/u);
|
||||
|
||||
const gitopsRender = await readFile("scripts/g14-gitops-render.mjs", "utf8");
|
||||
|
||||
Reference in New Issue
Block a user