fix(ci): stop rendering pre-flush runtime-ready for runtime lanes

This commit is contained in:
root
2026-07-04 03:06:53 +00:00
parent 034946085d
commit 7aed237c26
2 changed files with 9 additions and 16 deletions
+7 -4
View File
@@ -3280,6 +3280,12 @@ function imagePublishTaskSet(args = { lane: "node" }, deploy = null) {
function tektonPipeline(args = { lane: "node" }, deploy = null) {
const settings = ciLaneSettings(args);
const runtimePath = gitopsPathForProfile(args, settings.profile);
const preFlushRuntimeReadyTasks = isRuntimeLane(settings.lane)
? []
: [{
...runtimeReadyTask({ profile: settings.profile }),
when: [{ input: "$(tasks.gitops-promote.results.runtime-ready-required)", operator: "in", values: ["true"] }]
}];
return {
apiVersion: "tekton.dev/v1",
kind: "Pipeline",
@@ -3395,10 +3401,7 @@ function tektonPipeline(args = { lane: "node" }, deploy = null) {
{ name: "registry-prefix", value: "$(params.registry-prefix)" }
]
},
{
...runtimeReadyTask({ profile: settings.profile }),
when: [{ input: "$(tasks.gitops-promote.results.runtime-ready-required)", operator: "in", values: ["true"] }]
}
...preFlushRuntimeReadyTasks
]
}
};