mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-19 18:24:13 +00:00
fix(docker): keep MinIO client versions consistent (#11291)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# https://hub.docker.com/r/serversideup/php/tags?name=8.4-fpm-nginx-alpine
|
||||
ARG SERVERSIDEUP_PHP_VERSION=8.4-fpm-nginx-alpine
|
||||
# https://github.com/minio/mc/releases
|
||||
ARG MINIO_VERSION=RELEASE.2025-05-21T01-59-54Z
|
||||
ARG MINIO_VERSION=RELEASE.2025-08-13T08-35-41Z
|
||||
# https://github.com/cloudflare/cloudflared/releases
|
||||
ARG CLOUDFLARED_VERSION=2025.7.0
|
||||
# https://github.com/coollabsio/coold/releases/tag/nightly
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# https://hub.docker.com/r/serversideup/php/tags?name=8.4-fpm-nginx-alpine
|
||||
ARG SERVERSIDEUP_PHP_VERSION=8.4-fpm-nginx-alpine
|
||||
# https://github.com/minio/mc/releases
|
||||
ARG MINIO_VERSION=RELEASE.2025-05-21T01-59-54Z
|
||||
ARG MINIO_VERSION=RELEASE.2025-08-13T08-35-41Z
|
||||
# https://github.com/cloudflare/cloudflared/releases
|
||||
ARG CLOUDFLARED_VERSION=2026.7.3
|
||||
# https://www.postgresql.org/support/versioning/
|
||||
|
||||
@@ -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']);
|
||||
});
|
||||
Reference in New Issue
Block a user