@@ -3,10 +3,6 @@ name: bake
33on :
44 workflow_call :
55 inputs :
6- runs-on :
7- type : string
8- description : " Type of machine to run the jobs on similar to jobs.<job_id>.runs-on (defaults to best matching runner depending on target platform)"
9- required : false
106 context :
117 type : string
128 description : " Context to build from (defaults to repository root)"
145141
146142jobs :
147143 prepare :
148- runs-on : ${{ inputs.runs-on || ' ubuntu-latest' }}
144+ runs-on : ubuntu-24.04
149145 permissions :
150146 contents : read
151147 outputs :
@@ -177,7 +173,6 @@ jobs:
177173 uses : actions/github-script@v8
178174 env :
179175 INPUT_MATRIX-SIZE-LIMIT : ${{ env.MATRIX_SIZE_LIMIT }}
180- INPUT_RUNS-ON : ${{ inputs.runs-on }}
181176 INPUT_CONTEXT : ${{ inputs.context }}
182177 INPUT_TARGET : ${{ inputs.target }}
183178 INPUT_BAKE-ALLOW : ${{ inputs.bake-allow }}
@@ -194,7 +189,6 @@ jobs:
194189
195190 const inpMatrixSizeLimit = parseInt(core.getInput('matrix-size-limit'), 10);
196191
197- const inpRunsOn = core.getInput('runs-on');
198192 const inpContext = core.getInput('context');
199193 const inpTarget = core.getInput('target');
200194 const inpBakeAllow = core.getInput('bake-allow');
@@ -240,18 +234,14 @@ jobs:
240234 } else if (platforms.length === 0) {
241235 includes.push({
242236 index: 0,
243- 'runs-on': inpRunsOn || 'ubuntu-latest '
237+ runner: 'ubuntu-24.04 '
244238 });
245239 } else {
246240 platforms.forEach((platform, index) => {
247- let runsOn = inpRunsOn;
248- if (!runsOn) {
249- runsOn = platform.startsWith('linux/arm') ? 'ubuntu-24.04-arm' : 'ubuntu-latest';
250- }
251241 includes.push({
252242 index: index,
253243 platform: platform,
254- 'runs-on': runsOn
244+ runner: platform.startsWith('linux/arm') ? 'ubuntu-24.04-arm' : 'ubuntu-24.04'
255245 });
256246 });
257247 }
@@ -260,7 +250,7 @@ jobs:
260250 });
261251
262252 build :
263- runs-on : ${{ matrix.runs-on }}
253+ runs-on : ${{ matrix.runner }}
264254 needs :
265255 - prepare
266256 permissions :
@@ -633,7 +623,7 @@ jobs:
633623 core.setOutput(`result_${inpIndex}`, JSON.stringify(result));
634624
635625 finalize :
636- runs-on : ${{ inputs.runs-on || ' ubuntu-latest' }}
626+ runs-on : ubuntu-24.04
637627 permissions :
638628 contents : read
639629 id-token : write # for registry authentication with OIDC if needed
0 commit comments