Skip to content

Commit 1382093

Browse files
committed
NO-JIRA: refactor(.github/workflows): use JSON-based platform runner mapping and add README for runners, then add IBM runners
1 parent 87e8424 commit 1382093

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Available runners
2+
3+
List for
4+
[public repositories](https://docs.github.com/en/actions/reference/runners/github-hosted-runners#standard-github-hosted-runners-for-public-repositories)
5+
and for
6+
[private repositories](https://docs.github.com/en/actions/reference/runners/github-hosted-runners#standard-github-hosted-runners-for--private-repositories).
7+
8+
- **Linux**: `ubuntu-latest`, `ubuntu-24.04`, `ubuntu-24.04-arm`
9+
10+
We have [IBM PowerPC and Z runners](https://community.ibm.com/community/user/blogs/elizabeth-k-joseph1/2025/05/19/expanding-open-source-access-hosted-github-actions) available through
11+
12+
* https://github.com/IBM/actionspz/issues/63
13+
14+
- **Linux**: `ubuntu-24.04-ppc64le`, `ubuntu-24.04-s390x`
15+
16+
We have considered investigating custom runners, either just plain containers/VMs, or something fronting an OpenShift cluster, in
17+
18+
* https://github.com/opendatahub-io/notebooks/issues/1389
19+
* https://github.com/opendatahub-io/notebooks/pull/2627

.github/workflows/build-notebooks-TEMPLATE.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,20 @@ name: Build & Publish Notebook Servers (TEMPLATE)
2929
description: "add RHEL subscription from github secret"
3030
type: boolean
3131

32+
env:
33+
# language=json
34+
PLATFORM_RUNNERS: >-
35+
{
36+
"linux/amd64": "ubuntu-24.04",
37+
"linux/arm64": "ubuntu-24.04-arm",
38+
"linux/ppc64le": "ubuntu-24.04-ppc64le",
39+
"linux/s390x": "ubuntu-24.04-s390x"
40+
}
41+
3242
jobs:
3343
build:
3444
# https://docs.github.com/en/actions/how-tos/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
35-
runs-on: ${{ inputs.platform == 'linux/arm64' && 'ubuntu-24.04-arm' || 'ubuntu-24.04' }}
45+
runs-on: ${{ fromJSON(env.PLATFORM_RUNNERS)[inputs.platform] || 'no-such-runner' }}
3646
env:
3747
# Some pieces of code (image pulls, for example) in podman consult TMPDIR or default to /var/tmp
3848
TMPDIR: /home/runner/.local/share/containers/tmpdir

0 commit comments

Comments
 (0)