fix: wait for imgproxy compat health on release

This commit is contained in:
john
2026-07-15 11:58:01 +08:00
parent 3695fecbb6
commit 07f1ad0a6e
2 changed files with 5 additions and 0 deletions
@@ -24,6 +24,7 @@ test('installer uses a read-only storage mount and both required ports', () => {
assert.match(installer, /10\.10\.0\.2/);
assert.match(installer, /IMGPROXY_UPSTREAM/);
assert.match(installer, /DOCKER_BIN/);
assert.match(installer, /seq 1 20/);
});
test('release verifies checksums before loading the image and backs up launch state', () => {
+4
View File
@@ -54,4 +54,8 @@ launchctl bootout "$GUI/cn.tkmind.imgproxy-compat" 2>/dev/null || true
launchctl bootstrap "$GUI" "$PLIST"
launchctl enable "$GUI/cn.tkmind.imgproxy-compat"
launchctl kickstart -k "$GUI/cn.tkmind.imgproxy-compat"
for _ in $(seq 1 20); do
curl -fsS --max-time 2 http://10.10.0.2:20081/health >/dev/null && break
sleep 1
done
curl -fsS --max-time 3 http://10.10.0.2:20081/health >/dev/null