From 1e9c00b0b902a36d722596ed42c089fb3220d6ba Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Fri, 24 Jan 2025 14:43:22 +0100 Subject: [PATCH] feat(datasource/github-runners): support ubuntu arm partner images (#33824) --- lib/modules/datasource/github-runners/index.spec.ts | 2 ++ lib/modules/datasource/github-runners/index.ts | 3 +++ lib/modules/datasource/github-runners/readme.md | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/modules/datasource/github-runners/index.spec.ts b/lib/modules/datasource/github-runners/index.spec.ts index 7d79c59aca7e0d..4a5407e6630d26 100644 --- a/lib/modules/datasource/github-runners/index.spec.ts +++ b/lib/modules/datasource/github-runners/index.spec.ts @@ -14,7 +14,9 @@ describe('modules/datasource/github-runners/index', () => { { version: '16.04', isDeprecated: true }, { version: '18.04', isDeprecated: true }, { version: '20.04', isDeprecated: true }, + { version: '22.04-arm', isStable: false }, { version: '22.04' }, + { version: '24.04-arm', isStable: false }, { version: '24.04' }, ], sourceUrl: 'https://github.com/actions/runner-images', diff --git a/lib/modules/datasource/github-runners/index.ts b/lib/modules/datasource/github-runners/index.ts index 08a42b3f92c115..2c86263dbafab6 100644 --- a/lib/modules/datasource/github-runners/index.ts +++ b/lib/modules/datasource/github-runners/index.ts @@ -14,11 +14,14 @@ export class GithubRunnersDatasource extends Datasource { * Deprecated runners must have the `isDeprecated: true` property. * Stable runners should have no extra properties. * For more details, read the github-runners datasource readme. + * Check https://github.blog/changelog/label/actions/ for stable and deprecation dates. */ private static readonly releases: Record = { ubuntu: [ { version: '24.04' }, + { version: '24.04-arm', isStable: false }, { version: '22.04' }, + { version: '22.04-arm', isStable: false }, { version: '20.04', isDeprecated: true }, { version: '18.04', isDeprecated: true }, { version: '16.04', isDeprecated: true }, diff --git a/lib/modules/datasource/github-runners/readme.md b/lib/modules/datasource/github-runners/readme.md index 4c3d92bb3249e9..b73a94d53bf8c1 100644 --- a/lib/modules/datasource/github-runners/readme.md +++ b/lib/modules/datasource/github-runners/readme.md @@ -1,5 +1,5 @@ This datasource returns a list of all runners that are hosted by GitHub. -The datasource is based on [GitHub's `runner-images` repository](https://github.com/actions/runner-images). +The datasource is based on GitHub's [`runner-images`](https://github.com/actions/runner-images) and [`partner-runner-images`](https://github.com/actions/partner-runner-images) repositories. Examples: `windows-2022` / `ubuntu-24.04` / `macos-14`