diff --git a/.changes/the-nightly-update-channel-was-hard.md b/.changes/the-nightly-update-channel-was-hard.md new file mode 100644 index 0000000000..3ee8afa3af --- /dev/null +++ b/.changes/the-nightly-update-channel-was-hard.md @@ -0,0 +1,6 @@ +--- +type: fixed +--- +The `Nightly` update channel was hard to find, because only the `Channel` list in `Settings` > `Updates` named it ([#12492](https://github.com/coollabsio/coolify/issues/12492)) + +- On the `Stable` channel, `Settings` > `Updates` shows a hint about `Nightly`. The upgrade dialog shows the update channel and links to `Settings` > `Updates` diff --git a/app/Livewire/Upgrade.php b/app/Livewire/Upgrade.php index b4a8daee4a..0413f01186 100644 --- a/app/Livewire/Upgrade.php +++ b/app/Livewire/Upgrade.php @@ -22,6 +22,8 @@ class Upgrade extends Component public bool $fullButton = false; + public string $updateChannel = 'stable'; + protected $listeners = ['updateAvailable' => 'checkUpdate']; public function mount() @@ -43,6 +45,8 @@ class Upgrade extends Component $this->currentVersion = config('constants.coolify.version'); $this->latestVersion = get_latest_version_of_coolify(); $this->devMode = isDev(); + $settings = InstanceSettings::find(0); + $this->updateChannel = (string) data_get($settings, 'update_channel', 'stable'); if ($this->devMode) { $this->isUpgradeAvailable = true; @@ -50,7 +54,6 @@ class Upgrade extends Component return; } - $settings = InstanceSettings::find(0); if (data_get($settings, 'update_channel') === 'custom') { $this->latestVersion = (string) $settings->update_custom_tag; $this->isUpgradeAvailable = $this->fullButton && $this->latestVersion !== ''; diff --git a/resources/views/livewire/settings/updates.blade.php b/resources/views/livewire/settings/updates.blade.php index 49dc757d8e..31cf40c62d 100644 --- a/resources/views/livewire/settings/updates.blade.php +++ b/resources/views/livewire/settings/updates.blade.php @@ -22,7 +22,7 @@ @@ -35,6 +35,13 @@ +
+ + The Nightly channel installs a build of the next version two times each day. + Nightly builds get less testing and can break this instance. + +
diff --git a/resources/views/livewire/upgrade.blade.php b/resources/views/livewire/upgrade.blade.php index 183b5ae846..758c6c579a 100644 --- a/resources/views/livewire/upgrade.blade.php +++ b/resources/views/livewire/upgrade.blade.php @@ -54,6 +54,15 @@ {{ $currentVersion }} → {{ $latestVersion }}

+

+ {{ $updateChannel === 'custom' ? 'Custom image' : ucfirst($updateChannel) . ' channel' }} + · + Change + channel +