Skip to content

Commit 98f5198

Browse files
authored
add a runner choice (#137)
1 parent 8ec0c98 commit 98f5198

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/reusable_dockerfile_pipeline.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ on:
2626
type: string
2727
description: 'string containing a space separated list build of args e.g. "TARGETOS=linux TARGETARCH=amd64"'
2828
default: ""
29+
runner-label:
30+
required: false
31+
type: string
32+
description: "The runner label to use for the job"
33+
default: "ubuntu-latest"
2934

3035
env:
3136
GITHUB_REG: ghcr.io
@@ -34,7 +39,7 @@ env:
3439

3540
jobs:
3641
prepare-env:
37-
runs-on: "ubuntu-latest"
42+
runs-on: ${{ inputs.runner-label || 'ubuntu-latest' }}
3843
outputs:
3944
repo_owner: ${{ steps.setting_env.outputs.repo_owner }}
4045
output_short_sha: ${{ steps.setting_env.outputs.short_sha }}

0 commit comments

Comments
 (0)