Skip to content

Commit 875b536

Browse files
committed
🔨 update build action
1 parent 591e094 commit 875b536

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

.github/workflows/docker-build.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,14 @@ name: Docker Build All Images
33
on:
44
workflow_dispatch:
55
inputs:
6-
runners:
7-
description: 'Comma-separated runner labels'
6+
runner_label_json:
7+
description: 'JSON 格式的 runner 标签数组,例如 ["self-hosted", "Tony", "ARM64"]'
88
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
9+
default: '["self-hosted", "MacOS", "ARM64"]'
1910

2011
jobs:
2112
checkout:
22-
runs-on: self-hosted
13+
runs-on: ${{ fromJson(inputs.runner_label_json) }}
2314
outputs:
2415
sha: ${{ steps.get-sha.outputs.sha }}
2516
steps:

0 commit comments

Comments
 (0)