Retry sing-box downloads in runtime builds
Build and Deploy Gateway / build-and-push (push) Successful in 36s
Build and Deploy Gateway / deploy (push) Successful in 18s

This commit is contained in:
2026-08-09 13:33:28 +03:00
parent d612e227fa
commit 3204ecf4a5
5 changed files with 14 additions and 5 deletions
+9
View File
@@ -170,3 +170,12 @@ test('every shipped build defaults to sing-box 1.13.18', () => {
assert.match(fs.readFileSync(path.join(root, file), 'utf8'), /SINGBOX_VERSION[^\n]*1\.13\.18/);
}
});
test('runtime builds retry transient sing-box release download failures', () => {
for (const file of ['Dockerfile', 'Dockerfile.client', 'Dockerfile.runtime-base']) {
assert.match(
fs.readFileSync(path.join(root, file), 'utf8'),
/curl --retry 5 --retry-all-errors --retry-delay 2 -fsSL .*SagerNet\/sing-box/,
);
}
});