fix(release): protect backend recovery races

This commit is contained in:
key
2026-07-29 03:30:39 +08:00
parent 39476b2244
commit 99958f42fc
4 changed files with 92 additions and 9 deletions
-7
View File
@@ -132,7 +132,6 @@ artifact_commit_sha=""
artifact_sha256=""
artifact_bytes=""
artifact_module_name=""
artifact_module_sha256=""
remote_current_sha256=""
remote_current_bytes=""
@@ -168,11 +167,6 @@ validate_local_artifact() {
head -1
)"
[[ -n "$artifact_module_name" ]] || fail "release JAR does not contain ruoyi-aihr"
artifact_module_sha256="$(
unzip -p "$artifact" "BOOT-INF/lib/$artifact_module_name" |
sha256sum |
awk '{print tolower($1)}'
)"
}
remote_value() {
@@ -289,7 +283,6 @@ run_deploy_plan() {
echo "artifact_bytes=$artifact_bytes"
echo "artifact_sha256=$artifact_sha256"
echo "artifact_module=$artifact_module_name"
echo "artifact_module_sha256=$artifact_module_sha256"
echo "remote_target=$REMOTE_SSH:$REMOTE_PATH"
echo "remote_current_sha256=$remote_current_sha256"
echo "remote_service=$REMOTE_SERVICE"