diff --git a/config/constants.php b/config/constants.php index 7b228092b..a8029f4ca 100644 --- a/config/constants.php +++ b/config/constants.php @@ -2,7 +2,7 @@ return [ 'coolify' => [ - 'version' => env('COOLIFY_VERSION') ?: '4.3.4', + 'version' => env('COOLIFY_VERSION') ?: '4.3.5', 'helper_version' => '1.0.15', 'realtime_version' => '1.0.17', 'railpack_version' => '0.23.0', diff --git a/other/nightly/versions.json b/other/nightly/versions.json index d71be1c5d..39a0498cf 100644 --- a/other/nightly/versions.json +++ b/other/nightly/versions.json @@ -1,10 +1,10 @@ { "coolify": { "v4": { - "version": "4.3.4" + "version": "4.3.5" }, "nightly": { - "version": "4.3.5" + "version": "4.3.6" }, "helper": { "version": "1.0.15" diff --git a/tests/Unit/ProductionImageWorkflowTest.php b/tests/Unit/ProductionImageWorkflowTest.php index 2a360eb9a..07e7041aa 100644 --- a/tests/Unit/ProductionImageWorkflowTest.php +++ b/tests/Unit/ProductionImageWorkflowTest.php @@ -4,6 +4,8 @@ it('publishes v4 branch builds under the commit sha with a traceable internal ve $workflow = file_get_contents(dirname(__DIR__, 2).'/.github/workflows/coolify-sha-build.yml'); $dockerfile = file_get_contents(dirname(__DIR__, 2).'/docker/production/Dockerfile'); $constants = file_get_contents(dirname(__DIR__, 2).'/config/constants.php'); + $versions = json_decode(file_get_contents(dirname(__DIR__, 2).'/versions.json'), true, flags: JSON_THROW_ON_ERROR); + $nightlyVersions = json_decode(file_get_contents(dirname(__DIR__, 2).'/other/nightly/versions.json'), true, flags: JSON_THROW_ON_ERROR); expect($workflow) ->toContain('name: Build Coolify (SHA)') @@ -21,7 +23,10 @@ it('publishes v4 branch builds under the commit sha with a traceable internal ve ->toContain('ARG COOLIFY_VERSION') ->toContain('ENV COOLIFY_VERSION=${COOLIFY_VERSION}') ->and($constants) - ->toContain("'version' => env('COOLIFY_VERSION') ?: '4.3.4'"); + ->toContain("'version' => env('COOLIFY_VERSION') ?: '4.3.5'") + ->and($versions['coolify']['v4']['version'])->toBe('4.3.5') + ->and($versions['coolify']['nightly']['version'])->toBe('4.3.6') + ->and($nightlyVersions)->toBe($versions); }); it('orders a maintenance development build before its stable release', function () { diff --git a/versions.json b/versions.json index d71be1c5d..39a0498cf 100644 --- a/versions.json +++ b/versions.json @@ -1,10 +1,10 @@ { "coolify": { "v4": { - "version": "4.3.4" + "version": "4.3.5" }, "nightly": { - "version": "4.3.5" + "version": "4.3.6" }, "helper": { "version": "1.0.15"