From 19ce2d4272bd3eb804359efb334c049815aa17e1 Mon Sep 17 00:00:00 2001 From: wangbo Date: Tue, 28 Jul 2026 04:59:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(deploy):=20=E4=BF=9D=E7=95=99=20Kustomize?= =?UTF-8?q?=20digest=20=E8=A1=8C=E7=BC=A9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 替换真实 release manifest 的 API/Web digest 时固定输出 Kustomization 所需的四空格缩进,避免 awk 字段重建破坏 YAML。 验证:使用已发布 971540a 完整 manifest 实际渲染 696 行清单,确认所有应用镜像均为非零 digest。 --- scripts/cluster/bootstrap-platform.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/cluster/bootstrap-platform.sh b/scripts/cluster/bootstrap-platform.sh index 4f26d7e..337df2a 100755 --- a/scripts/cluster/bootstrap-platform.sh +++ b/scripts/cluster/bootstrap-platform.sh @@ -73,8 +73,8 @@ web_digest=${web_image##*@} awk -v api_digest="$api_digest" -v web_digest="$web_digest" ' $3 == "easyai-api" { image = "api" } $3 == "easyai-web" { image = "web" } - $1 == "digest:" && image == "api" { $2 = api_digest; image = ""; print; next } - $1 == "digest:" && image == "web" { $2 = web_digest; image = ""; print; next } + $1 == "digest:" && image == "api" { print " digest: " api_digest; image = ""; next } + $1 == "digest:" && image == "web" { print " digest: " web_digest; image = ""; next } { print } ' "$working_directory/production/kustomization.yaml" \ >"$working_directory/production/kustomization.yaml.next"