Files
coolify/tests/Feature/PersistentImageStorageTest.php
T
peaklabs-dev e0fb2b3897 ci(release): build and release a nightly twice a day
- Remove other/nightly, the nightly channel uses the production files, so there are no longer two copies to keep in sync
- sync-cdn.sh --nightly syncs the files of the commit the nightly is built from to /coolify/nightly on the CDN, with the nightly version in its versions.json and in /coolify/release.json, and pushes them straight to main of coollabs-cdn
- version.sh picks the branch the nightly comes from, the release branch of the next version after the newest stable one or next, and names the version <preview>.<YYYYMMDD>.<N>
- The image is labeled with its version and commit, the nightly workflow reads both from the image nightly points at to count up N and to skip a run without a new commit
2026-11-01 19:37:39 +01:00

31 lines
1.1 KiB
PHP

<?php
it('configures a dedicated private disk for persisted images', function () {
expect(config('filesystems.disks.images'))
->toMatchArray([
'driver' => 'local',
'root' => storage_path('app/images'),
'visibility' => 'private',
]);
});
it('persists images in stable and nightly production compose files', function (string $composeFile) {
expect(file_get_contents(base_path($composeFile)))
->toContain('/data/coolify/images:/var/www/html/storage/app/images');
})->with([
'stable' => 'docker-compose.prod.yml',
]);
it('persists images in the Windows compose file', function () {
expect(file_get_contents(base_path('docker-compose.windows.yml')))
->toContain('./images:/var/www/html/storage/app/images');
});
it('creates the persistent image directory during installation and upgrades', function (string $script) {
expect(file_get_contents(base_path($script)))
->toContain('/data/coolify/images');
})->with([
'install' => 'scripts/install.sh',
'upgrade' => 'scripts/upgrade.sh',
]);