diff --git a/.github/scripts/release-index/build-releases.js b/.github/scripts/release-index/build-releases.js index 0fe2912d..5d249c8b 100644 --- a/.github/scripts/release-index/build-releases.js +++ b/.github/scripts/release-index/build-releases.js @@ -196,7 +196,8 @@ async function buildChannelData(channelReleases, channelName) { release.appVersion = await getAppVersionFromChart(release.version); } - const latestVersion = sorted[0]?.version; + const latestRelease = sorted[0] || null; + const latestVersion = latestRelease?.version; const latestSecureIndex = latestWithSecurityFixes ? sorted.findIndex((r) => r.version === latestWithSecurityFixes) : -1; @@ -209,8 +210,8 @@ async function buildChannelData(channelReleases, channelName) { return { releases: topReleases, - latestChartVersion: sorted[0]?.version || null, latestWithSecurityFixes, + latestRelease, }; } @@ -242,12 +243,12 @@ async function buildIndex() { channels: { stable: { releases: stable.releases, - latestChartVersion: stable.latestChartVersion, + latestRelease: stable.latestRelease, latestWithSecurityFixes: stable.latestWithSecurityFixes, }, latest: { releases: latest.releases, - latestChartVersion: latest.latestChartVersion, + latestRelease: latest.latestRelease, latestWithSecurityFixes: latest.latestWithSecurityFixes, }, }, @@ -272,7 +273,12 @@ async function buildIndex() { console.log(` Total releases: ${index.stats.totalReleases}`); console.log(`\n 🟢 Stable Channel:`); console.log( - ` Latest: ${index.channels.stable.latestChartVersion || "none"}` + ` Latest chart: ${index.channels.stable.latestRelease?.version || "none"}` + ); + console.log( + ` Latest app: ${ + index.channels.stable.latestRelease?.appVersion || "none" + }` ); console.log( ` Latest secure: ${ @@ -281,7 +287,12 @@ async function buildIndex() { ); console.log(`\n 🔵 Latest Channel:`); console.log( - ` Latest: ${index.channels.latest.latestChartVersion || "none"}` + ` Latest chart: ${index.channels.latest.latestRelease?.version || "none"}` + ); + console.log( + ` Latest app: ${ + index.channels.latest.latestRelease?.appVersion || "none" + }` ); console.log( ` Latest secure: ${ diff --git a/.github/workflows/release-index.yaml b/.github/workflows/release-index.yaml index b3ca8e6f..94c361ea 100644 --- a/.github/workflows/release-index.yaml +++ b/.github/workflows/release-index.yaml @@ -1,4 +1,4 @@ -name: Update Release Index +name: update-release-index on: release: diff --git a/releases/releases.json b/releases/releases.json new file mode 100644 index 00000000..88a4261c --- /dev/null +++ b/releases/releases.json @@ -0,0 +1,146 @@ +{ + "generatedAt": "2025-11-07T15:36:10.672Z", + "repository": "codefresh-io/gitops-runtime-helm", + "channels": { + "stable": { + "releases": [ + { + "version": "0.25.1", + "normalized": "0.25.1", + "channel": "stable", + "hasSecurityFixes": false, + "publishedAt": "2025-11-06T10:31:16Z", + "url": "https://github.com/codefresh-io/gitops-runtime-helm/releases/tag/0.25.1", + "createdAt": "2025-11-06T10:28:31Z", + "appVersion": "0.1.77", + "upgradeAvailable": false, + "hasSecurityVulnerabilities": false + }, + { + "version": "0.25.0", + "normalized": "0.25.0", + "channel": "stable", + "hasSecurityFixes": false, + "publishedAt": "2025-11-03T13:23:47Z", + "url": "https://github.com/codefresh-io/gitops-runtime-helm/releases/tag/0.25.0", + "createdAt": "2025-11-03T12:48:01Z", + "appVersion": "0.1.76", + "upgradeAvailable": true, + "hasSecurityVulnerabilities": false + }, + { + "version": "0.24.7", + "normalized": "0.24.7", + "channel": "stable", + "hasSecurityFixes": false, + "publishedAt": "2025-10-30T07:06:35Z", + "url": "https://github.com/codefresh-io/gitops-runtime-helm/releases/tag/0.24.7", + "createdAt": "2025-10-30T07:03:41Z", + "appVersion": "0.1.75", + "upgradeAvailable": true, + "hasSecurityVulnerabilities": false + }, + { + "version": "0.24.6", + "normalized": "0.24.6", + "channel": "stable", + "hasSecurityFixes": false, + "publishedAt": "2025-10-29T09:42:35Z", + "url": "https://github.com/codefresh-io/gitops-runtime-helm/releases/tag/0.24.6", + "createdAt": "2025-10-29T09:40:02Z", + "appVersion": "0.1.75", + "upgradeAvailable": true, + "hasSecurityVulnerabilities": false + }, + { + "version": "0.24.5", + "normalized": "0.24.5", + "channel": "stable", + "hasSecurityFixes": false, + "publishedAt": "2025-10-27T16:57:36Z", + "url": "https://github.com/codefresh-io/gitops-runtime-helm/releases/tag/0.24.5", + "createdAt": "2025-10-27T16:54:58Z", + "appVersion": "0.1.75", + "upgradeAvailable": true, + "hasSecurityVulnerabilities": false + }, + { + "version": "0.24.4", + "normalized": "0.24.4", + "channel": "stable", + "hasSecurityFixes": false, + "publishedAt": "2025-10-09T08:01:52Z", + "url": "https://github.com/codefresh-io/gitops-runtime-helm/releases/tag/0.24.4", + "createdAt": "2025-10-09T07:59:20Z", + "appVersion": "0.1.75", + "upgradeAvailable": true, + "hasSecurityVulnerabilities": false + }, + { + "version": "0.24.3", + "normalized": "0.24.3", + "channel": "stable", + "hasSecurityFixes": false, + "publishedAt": "2025-10-01T14:04:55Z", + "url": "https://github.com/codefresh-io/gitops-runtime-helm/releases/tag/0.24.3", + "createdAt": "2025-10-01T14:02:05Z", + "appVersion": "0.1.75", + "upgradeAvailable": true, + "hasSecurityVulnerabilities": false + }, + { + "version": "0.24.2", + "normalized": "0.24.2", + "channel": "stable", + "hasSecurityFixes": false, + "publishedAt": "2025-09-22T11:42:14Z", + "url": "https://github.com/codefresh-io/gitops-runtime-helm/releases/tag/0.24.2", + "createdAt": "2025-09-22T11:39:54Z", + "appVersion": "0.1.75", + "upgradeAvailable": true, + "hasSecurityVulnerabilities": false + }, + { + "version": "0.24.1", + "normalized": "0.24.1", + "channel": "stable", + "hasSecurityFixes": false, + "publishedAt": "2025-09-10T16:01:18Z", + "url": "https://github.com/codefresh-io/gitops-runtime-helm/releases/tag/0.24.1", + "createdAt": "2025-09-10T15:58:26Z", + "appVersion": "0.1.75", + "upgradeAvailable": true, + "hasSecurityVulnerabilities": false + }, + { + "version": "0.24.0", + "normalized": "0.24.0", + "channel": "stable", + "hasSecurityFixes": false, + "publishedAt": "2025-09-08T14:01:03Z", + "url": "https://github.com/codefresh-io/gitops-runtime-helm/releases/tag/0.24.0", + "createdAt": "2025-09-08T13:59:05Z", + "appVersion": "0.1.75", + "upgradeAvailable": true, + "hasSecurityVulnerabilities": false + } + ], + "latestChartVersion": "0.25.1", + "latestWithSecurityFixes": null, + "latestAppVersion": "0.1.77", + "latestUrl": "https://github.com/codefresh-io/gitops-runtime-helm/releases/tag/0.25.1" + }, + "latest": { + "releases": [], + "latestChartVersion": null, + "latestWithSecurityFixes": null, + "latestAppVersion": null, + "latestUrl": null + } + }, + "stats": { + "totalReleases": 128, + "stableSecure": null, + "latestSecure": null + } +} \ No newline at end of file