fix(traefik): track v3.7 and security patch updates (#11029)
This commit is contained in:
commit
2180a5e7ef
3 changed files with 23 additions and 6 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"coolify": {
|
"coolify": {
|
||||||
"v4": {
|
"v4": {
|
||||||
"version": "4.2.0"
|
"version": "4.1.2"
|
||||||
},
|
},
|
||||||
"nightly": {
|
"nightly": {
|
||||||
"version": "4.2.0"
|
"version": "4.2.0"
|
||||||
|
|
@ -17,13 +17,14 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"traefik": {
|
"traefik": {
|
||||||
"v3.6": "3.6.11",
|
"v3.7": "3.7.8",
|
||||||
|
"v3.6": "3.6.23",
|
||||||
"v3.5": "3.5.6",
|
"v3.5": "3.5.6",
|
||||||
"v3.4": "3.4.5",
|
"v3.4": "3.4.5",
|
||||||
"v3.3": "3.3.7",
|
"v3.3": "3.3.7",
|
||||||
"v3.2": "3.2.5",
|
"v3.2": "3.2.5",
|
||||||
"v3.1": "3.1.7",
|
"v3.1": "3.1.7",
|
||||||
"v3.0": "3.0.4",
|
"v3.0": "3.0.4",
|
||||||
"v2.11": "2.11.40"
|
"v2.11": "2.11.52"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,21 @@
|
||||||
expect($branch)->toMatch('/^v\d+\.\d+$/'); // e.g., "v3.6"
|
expect($branch)->toMatch('/^v\d+\.\d+$/'); // e.g., "v3.6"
|
||||||
expect($version)->toMatch('/^\d+\.\d+\.\d+$/'); // e.g., "3.6.0"
|
expect($version)->toMatch('/^\d+\.\d+\.\d+$/'); // e.g., "3.6.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Track current supported branches so the checker can surface security patches
|
||||||
|
// (see https://github.com/coollabsio/coolify/issues/11025)
|
||||||
|
expect($traefikVersions)->toHaveKeys(['v3.7', 'v3.6', 'v2.11']);
|
||||||
|
expect(version_compare($traefikVersions['v3.7'], '3.7.8', '>='))->toBeTrue();
|
||||||
|
expect(version_compare($traefikVersions['v3.6'], '3.6.23', '>='))->toBeTrue();
|
||||||
|
expect(version_compare($traefikVersions['v2.11'], '2.11.52', '>='))->toBeTrue();
|
||||||
|
|
||||||
|
// Newest tracked branch should sort as the highest major.minor
|
||||||
|
$newestBranch = collect($traefikVersions)
|
||||||
|
->keys()
|
||||||
|
->map(fn (string $branch) => ltrim($branch, 'v'))
|
||||||
|
->sort(SORT_NATURAL)
|
||||||
|
->last();
|
||||||
|
expect($newestBranch)->toBe('3.7');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('formats version with v prefix for display', function () {
|
it('formats version with v prefix for display', function () {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"coolify": {
|
"coolify": {
|
||||||
"v4": {
|
"v4": {
|
||||||
"version": "4.2.0"
|
"version": "4.1.2"
|
||||||
},
|
},
|
||||||
"nightly": {
|
"nightly": {
|
||||||
"version": "4.2.0"
|
"version": "4.2.0"
|
||||||
|
|
@ -17,13 +17,14 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"traefik": {
|
"traefik": {
|
||||||
"v3.6": "3.6.11",
|
"v3.7": "3.7.8",
|
||||||
|
"v3.6": "3.6.23",
|
||||||
"v3.5": "3.5.6",
|
"v3.5": "3.5.6",
|
||||||
"v3.4": "3.4.5",
|
"v3.4": "3.4.5",
|
||||||
"v3.3": "3.3.7",
|
"v3.3": "3.3.7",
|
||||||
"v3.2": "3.2.5",
|
"v3.2": "3.2.5",
|
||||||
"v3.1": "3.1.7",
|
"v3.1": "3.1.7",
|
||||||
"v3.0": "3.0.4",
|
"v3.0": "3.0.4",
|
||||||
"v2.11": "2.11.40"
|
"v2.11": "2.11.52"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue