Skip to content

Commit

Permalink
Always deploy beta to all instances
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Gaussorgues <[email protected]>
  • Loading branch information
Altahrim committed Sep 13, 2024
1 parent fb68cbb commit 14f2c71
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build/config_builder
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,16 @@ foreach ($releases as $releaseName => $info) {
if (isset($latestReleases[$stability][$previousMajor])) {
$upgradeFrom = $latestReleases[$stability][$previousMajor];
$generatedConfig[$stability][$upgradeFrom][$deployPercent] = $generatedConfig[$stability][$major]['100'];
} elseif (isset($latestReleases['stable'][$major -1])) {
} elseif (isset($latestReleases['stable'][$previousMajor])) {
$upgradeFrom = $latestReleases['stable'][$previousMajor];
$generatedConfig[$stability][$upgradeFrom][$deployPercent] = $generatedConfig[$stability][$major]['100'];
}

// For stable versions, check if we can upgrade from a beta version
// Beta version are always deployed at 100%
if ($stability === 'stable') {
if (isset($latestReleases['beta'][$previousMajor])) {
$upgradeFrom = $latestReleases['beta'][$previousMajor];
if (isset($latestReleases['beta'][$previousMajor]) || $deployPercent !== 100) {
$upgradeFrom = $latestReleases['beta'][$previousMajor] ?? $latestReleases['stable'][$previousMajor];
$generatedConfig['beta'][$upgradeFrom][100] = $generatedConfig[$stability][$major]['100'];
}
}
Expand Down
16 changes: 16 additions & 0 deletions config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,22 @@
],
],
'beta' => [
'29.0.7.1' => [
'100' => [
'latest' => '30.0.0',
'internalVersion' => '30.0.0.14',
'downloadUrl' => 'https://download.nextcloud.com/server/releases/nextcloud-30.0.0.zip',
'web' => 'https://docs.nextcloud.com/server/30/admin_manual/maintenance/upgrade.html',
'eol' => false,
'minPHPVersion' => '8.1',
'signature' => 'QjU8BAz/b+ZSv1CFaom3VHE5IbT8giQgJ6/N00jPnWlRD8daXIsmIoLRe9UMl1yi
hTRRW3r7MQCa6RklmtZIAxsoRYlk7eEdbogKTODLRe9gsXdXF2KFisADl6bcEw1H
MLyVf7ncFnFlp9GYwpUEcGvJAzIcckkGTmBHAMTfmpSNQoijzdCP9ytKP2tJSe7h
tOXDKB0sOYzsO5A725ERye0RKfgMY7TRG0vq9tIxB7ydSykxVAGglKHDwl/6mn5D
NUfRJKep0nzpJXIOz+BiE6tTRxYMeRkUsI2WLPnPC3Ltu2Xl0u3iOoWaDfdD0Ox9
XjOoUiZRQ+fUfAGTnEZ+Lg==',
],
],
],
'daily' => [
'30' => [
Expand Down

0 comments on commit 14f2c71

Please sign in to comment.