fix: make imgproxy artifact checksums portable

This commit is contained in:
john
2026-07-15 11:48:09 +08:00
parent dd0014db83
commit 72f1266078
3 changed files with 5 additions and 3 deletions
@@ -14,6 +14,7 @@ test('imgproxy runtime pins an arm64 image digest', () => {
test('builder reuses an already verified digest without a network pull', () => {
const builder = read('scripts/build-imgproxy-runtime-image.sh');
assert.match(builder, /docker image inspect "\$IMAGE_REF"/);
assert.match(builder, /shasum -a 256 imgproxy-runtime-image\.tar\.gz/);
});
test('installer uses a read-only storage mount and both required ports', () => {
@@ -27,6 +28,7 @@ test('installer uses a read-only storage mount and both required ports', () => {
test('release verifies checksums before loading the image and backs up launch state', () => {
const release = read('scripts/release-imgproxy-runtime-prod.sh');
assert.match(release, /shasum -a 256 -c/);
assert.match(release, /shasum -a 256 "imgproxy-runtime-\$RELEASE_ID\.tar\.gz"/);
assert.match(release, /docker load/);
assert.match(release, /imgproxy-compat-\$RELEASE_ID\.plist/);
assert.match(release, /img\.tkmind\.cn\/health/);