We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 591e094 commit 875b536Copy full SHA for 875b536
.github/workflows/docker-build.yml
@@ -3,23 +3,14 @@ name: Docker Build All Images
3
on:
4
workflow_dispatch:
5
inputs:
6
- runners:
7
- description: 'Comma-separated runner labels'
+ runner_label_json:
+ description: 'JSON 格式的 runner 标签数组,例如 ["self-hosted", "Tony", "ARM64"]'
8
required: true
9
- default: cloud-builder,local-builder
10
- type: string
11
- architecture:
12
- description: 'Architecture'
13
- required: true
14
- default: ARM64
15
- type: choice
16
- options:
17
- - ARM64
18
- - X86
+ default: '["self-hosted", "MacOS", "ARM64"]'
19
20
jobs:
21
checkout:
22
- runs-on: self-hosted
+ runs-on: ${{ fromJson(inputs.runner_label_json) }}
23
outputs:
24
sha: ${{ steps.get-sha.outputs.sha }}
25
steps:
0 commit comments