fix: make imgproxy artifact checksums portable
This commit is contained in:
@@ -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/);
|
||||
|
||||
Reference in New Issue
Block a user