Skip to content

Commit

Permalink
feat: add upcoming release for mage-os 1.0.2 (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinai authored May 22, 2024
1 parent 4f19380 commit f1b13e8
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 19 deletions.
8 changes: 4 additions & 4 deletions supported-version/dist/index.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions supported-version/src/kind/get-currently-supported.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ describe('getCurrentlySupportedVersions for mage-os', () => {
['2024-01-01T00:00:00Z', 'First day of 2024', [
'mage-os/project-community-edition:1.0.1',
]],
['2024-05-21T00:00:00Z', 'Day before release of 1.0.2', [
'mage-os/project-community-edition:1.0.1',
]],
['2024-05-22T00:00:01Z', 'Release of 1.0.2', [
'mage-os/project-community-edition:1.0.2',
]],
])(
'supportedVersions for %s',
(date, description ,result) => {
Expand Down
2 changes: 1 addition & 1 deletion supported-version/src/kind/get-currently-supported.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const getCurrentlySupportedVersions = (project: string, date: Date): stri
return Object.entries(<Record<string,PackageMatrixVersion>>allVersions)
.filter(([key, value]) => {
const dayOfRelease = new Date(value.release);
dayOfRelease.setMinutes(dayOfRelease.getMinutes() + 1);
dayOfRelease.setSeconds(dayOfRelease.getSeconds() + 1);
return date >= dayOfRelease && new Date(value.eol) >= date;
})
.map(([key, value]) => key);
Expand Down
16 changes: 8 additions & 8 deletions supported-version/src/versions/mage-os/composite.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
},
"mage-os/project-community-edition:next": {
"magento": "mage-os/project-community-edition:next",
"php": 8.2,
"php": 8.3,
"composer": "2",
"mysql": "mysql:8.0",
"elasticsearch": "elasticsearch:8.5.3",
"rabbitmq": "rabbitmq:3.11-management",
"redis": "redis:7.0",
"varnish": "varnish:7.3",
"nginx": "nginx:1.22",
"mysql": "mariadb:10.6",
"elasticsearch": "opensearchproject/opensearch:2.12.0",
"rabbitmq": "rabbitmq:3.13-management",
"redis": "redis:7.2",
"varnish": "varnish:7.5",
"nginx": "nginx:1.26",
"os": "ubuntu-latest",
"release": "2023-10-10T00:00:00+0000",
"release": "2024-10-10T00:00:00+0000",
"eol": "2026-10-10T00:00:00+0000"
}
}
14 changes: 14 additions & 0 deletions supported-version/src/versions/mage-os/individual.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,20 @@
"nginx": "nginx:1.22",
"os": "ubuntu-latest",
"release": "2023-10-11T00:00:00+0000",
"eol": "2024-05-21T00:00:00+0000"
},
"mage-os/project-community-edition:1.0.2": {
"magento": "mage-os/project-community-edition:1.0.2",
"php": 8.3,
"composer": "2.7.4",
"mysql": "mariadb:10.6",
"elasticsearch": "opensearchproject/opensearch:2.12.0",
"rabbitmq": "rabbitmq:3.13-management",
"redis": "redis:7.2",
"varnish": "varnish:7.5",
"nginx": "nginx:1.26",
"os": "ubuntu-latest",
"release": "2024-05-22T00:00:00+0000",
"eol": "2026-10-11T00:00:00+0000"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@
"php": 8.3,
"composer": "2",
"mysql": "mariadb:10.6",
"elasticsearch": "opensearch:2.12.0",
"rabbitmq": "rabbitmq:3.12-management",
"elasticsearch": "opensearchproject/opensearch:2.12.0",
"rabbitmq": "rabbitmq:3.13-management",
"redis": "redis:7.2",
"varnish": "varnish:7.4",
"varnish": "varnish:7.5",
"nginx": "nginx:1.26",
"os": "ubuntu-latest",
"release": "2015-11-17T00:00:00+0000",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -508,10 +508,10 @@
"php": 8.3,
"composer": "2.7.4",
"mysql": "mariadb:10.6",
"elasticsearch": "opensearch:2.12.0",
"rabbitmq": "rabbitmq:3.12-management",
"elasticsearch": "opensearchproject/opensearch:2.12.0",
"rabbitmq": "rabbitmq:3.13-management",
"redis": "redis:7.2",
"varnish": "varnish:7.4",
"varnish": "varnish:7.5",
"nginx": "nginx:1.26",
"os": "ubuntu-latest",
"release": "2024-04-09T00:00:00+0000",
Expand Down

0 comments on commit f1b13e8

Please sign in to comment.