Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 8.4k
build: GitHub Builder runner mappings#25086
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Uh oh!
There was an error while loading. Please reload this page.
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
50 changes: 45 additions & 5 deletions
50 content/manuals/build/ci/github-actions/github-builder/architecture.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -27,11 +27,11 @@ conditions, permissions, secrets, target selection, metadata inputs, and the | ||
| choice between image output and local output. | ||
| Inside the reusable workflow, the first phase prepares the build. It validates | ||
| the incoming inputs, resolves the appropriate runner, and expands a | ||
| multi-platform request into one job per platform. The execution model is | ||
| easiest to picture as a matrix where `linux/amd64` runs on `ubuntu-24.04` and | ||
| `linux/arm64` runs on `ubuntu-24.04-arm`. Each platform job builds independently, | ||
| then the workflow finalizes the result into one caller-facing output contract. | ||
| the incoming inputs, resolves the runner config, and expands a multi-platform | ||
| request into one job per platform. The execution model is easiest to picture as | ||
| a matrix where `linux/amd64` runs on `ubuntu-24.04` and `linux/arm64` runs on | ||
| `ubuntu-24.04-arm`. Each platform job builds independently, then the workflow | ||
| finalizes the result into one caller-facing output contract. | ||
| ```yaml | ||
| requested platforms: | ||
| @@ -42,6 +42,46 @@ conceptual platform jobs: | ||
| linux/arm64 -> ubuntu-24.04-arm | ||
| ``` | ||
| ### Runner selection | ||
| The `runner` input accepts either a single GitHub-hosted Linux runner label or a | ||
| newline-delimited platform mapping. | ||
| The default value is a platform mapping that uses GitHub-hosted Ubuntu runners: | ||
| ```yaml | ||
| runner: | | ||
| default=ubuntu-24.04 | ||
| linux/arm=ubuntu-24.04-arm | ||
| linux/arm64=ubuntu-24.04-arm | ||
| ``` | ||
| In the platform job, the runner label resolves to a single value: | ||
| ```yaml | ||
| runner: ubuntu-24.04 | ||
| ``` | ||
| A mapping must define a `default` runner. Other keys are platform prefixes, and | ||
| the most specific matching prefix wins. For example, `linux/arm` matches | ||
| variants such as `linux/arm/v7`, while `linux/arm64` is a separate prefix: | ||
| In the following example, `linux` matches Linux platforms that do not match a | ||
| longer prefix. The `default` key is still required because it is the fallback | ||
| when no platform prefix matches. | ||
| ```yaml | ||
| runner: | | ||
| default=ubuntu-24.04 | ||
| linux=ubuntu-24.04 | ||
crazy-max marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| linux/arm=ubuntu-24.04-arm | ||
| linux/arm64=ubuntu-24.04-arm | ||
| ``` | ||
| The reusable workflows require GitHub-hosted Linux runners. The legacy `auto`, | ||
| `amd64`, and `arm64` values are still accepted for compatibility, but emit | ||
| deprecation warnings. Use an explicit runner label or platform mapping instead. | ||
| ## Execution path | ||
|  | ||
5 changes: 4 additions & 1 deletion
5 content/manuals/build/ci/github-actions/github-builder/bake.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 7 additions & 5 deletions
12 content/manuals/build/ci/github-actions/github-builder/build.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a page we could link to in the GitHub docs that shows the available labels?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes there is https://docs.github.com/en/actions/reference/runners/github-hosted-runners#supported-runners-and-hardware-resources and https://github.com/actions/partner-runner-images/#available-images but not sure about linking to these pages though 🤔