Skip to content

Commit a35134a

Browse files
Merge #7206: ci: dynamically choose GitHub or blacksmith based on runner state
5bfdbd3 chore: drop unrelated typo fixes per review (Pasta Lil Claw) d1cd212 ci: select Blacksmith runners dynamically (pasta) Pull request description: ## Issue being fixed or feature implemented Now, only run CI on blacksmith, if GitHub CI is very congested, or if the PR has label, which will give priority CI via blacksmith. ## What was done? ## How Has This Been Tested? ## Breaking Changes ## Checklist: _Go over all the following points, and put an `x` in all the boxes that apply._ - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_ ACKs for top commit: UdjinM6: utACK 5bfdbd3 Tree-SHA512: 79c0f232c34de2b6154e300ab227d14b0a6596cb502e25b09f05145721c32db13e5bb1a9ec3000dfb41fd6314bcf9cdc07b4c5c269669b9fcc8721ee5b8ab0c1
2 parents 1598859 + 5bfdbd3 commit a35134a

6 files changed

Lines changed: 533 additions & 51 deletions

File tree

.github/workflows/build-container.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ on:
1515
description: "Container name"
1616
required: true
1717
type: string
18+
runs-on-amd64:
19+
description: "Runner label to use for amd64 jobs"
20+
required: true
21+
type: string
22+
runs-on-arm64:
23+
description: "Runner label to use for arm64 jobs"
24+
required: true
25+
type: string
1826
outputs:
1927
path:
2028
description: "Path to built container"
@@ -23,7 +31,7 @@ on:
2331
jobs:
2432
build-amd64:
2533
name: Build container (amd64)
26-
runs-on: ${{ vars.RUNNER_AMD64 || 'ubuntu-24.04' }}
34+
runs-on: ${{ inputs.runs-on-amd64 }}
2735
outputs:
2836
tag: ${{ steps.prepare.outputs.tag }}
2937
repo: ${{ steps.prepare.outputs.repo }}
@@ -69,7 +77,7 @@ jobs:
6977

7078
build-arm64:
7179
name: Build container (arm64)
72-
runs-on: ${{ vars.RUNNER_ARM64 || 'ubuntu-24.04-arm' }}
80+
runs-on: ${{ inputs.runs-on-arm64 }}
7381
outputs:
7482
digest: ${{ steps.build.outputs.digest }}
7583
steps:
@@ -113,7 +121,7 @@ jobs:
113121

114122
create-manifest:
115123
name: Create multi-arch manifest
116-
runs-on: ${{ vars.RUNNER_ARM64 || 'ubuntu-24.04-arm' }}
124+
runs-on: ${{ inputs.runs-on-arm64 }}
117125
needs: [build-amd64, build-arm64]
118126
steps:
119127
- name: Checkout code

0 commit comments

Comments
 (0)