fix(docker): keep MinIO client versions consistent

This commit is contained in:
Juan Torchia
2026-08-14 21:06:13 +00:00
parent 096a1f5f08
commit 6ff6615600
3 changed files with 22 additions and 2 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
it('pins the same MinIO client release in every Coolify image', function () {
$dockerfiles = [
dirname(__DIR__, 2).'/docker/production/Dockerfile',
dirname(__DIR__, 2).'/docker/development/Dockerfile',
dirname(__DIR__, 2).'/docker/coolify-helper/Dockerfile',
];
$versions = collect($dockerfiles)->map(function (string $dockerfile): string {
$contents = file_get_contents($dockerfile);
expect(preg_match('/^ARG MINIO_VERSION=(.+)$/m', $contents, $matches))->toBe(1);
return $matches[1];
});
expect($versions->unique()->values()->all())
->toBe(['RELEASE.2025-08-13T08-35-41Z']);
});