|
1 | 1 | name: Build and Push Agent Images |
2 | 2 |
|
3 | 3 | on: |
4 | | - workflow_dispatch: |
5 | | - inputs: |
6 | | - tag_name: |
7 | | - description: 'release tag name (e.g., v1.0.0)' |
8 | | - required: true |
9 | | - type: string |
| 4 | + repository_dispatch: |
| 5 | + types: [build-agent-images] |
10 | 6 |
|
11 | 7 | jobs: |
12 | 8 | yolo-cpu: |
|
15 | 11 | repo_name: yolo_agent |
16 | 12 | dockerfile: detector/yolo/agent/Dockerfile |
17 | 13 | platforms: linux/amd64,linux/arm64 |
18 | | - tag: ${{ github.event.inputs.tag_name }} |
| 14 | + tag: ${{ github.event.client_payload.tag_name }} |
19 | 15 | secrets: inherit |
20 | 16 |
|
21 | 17 | yolo-gpu: |
|
25 | 21 | dockerfile: detector/yolo/agent/Dockerfile |
26 | 22 | platforms: linux/amd64 |
27 | 23 | build_args: USE_GPU=true |
28 | | - tag: ${{ github.event.inputs.tag_name }} |
| 24 | + tag: ${{ github.event.client_payload.tag_name }} |
29 | 25 | tag_suffix: _GPU |
30 | 26 | secrets: inherit |
31 | 27 |
|
|
35 | 31 | repo_name: sam2_agent |
36 | 32 | dockerfile: tracker/sam2/agent/Dockerfile |
37 | 33 | platforms: linux/amd64,linux/arm64 |
38 | | - tag: ${{ github.event.inputs.tag_name }} |
| 34 | + tag: ${{ github.event.client_payload.tag_name }} |
39 | 35 | secrets: inherit |
40 | 36 |
|
41 | 37 | sam2-gpu: |
|
45 | 41 | dockerfile: tracker/sam2/agent/Dockerfile |
46 | 42 | platforms: linux/amd64 |
47 | 43 | build_args: USE_GPU=true |
48 | | - tag: ${{ github.event.inputs.tag_name }} |
| 44 | + tag: ${{ github.event.client_payload.tag_name }} |
49 | 45 | tag_suffix: _GPU |
50 | 46 | secrets: inherit |
51 | 47 |
|
|
55 | 51 | repo_name: transformers_agent |
56 | 52 | dockerfile: detector/transformers/agent/Dockerfile |
57 | 53 | platforms: linux/amd64,linux/arm64 |
58 | | - tag: ${{ github.event.inputs.tag_name }} |
| 54 | + tag: ${{ github.event.client_payload.tag_name }} |
59 | 55 | secrets: inherit |
60 | 56 |
|
61 | 57 | transformers-gpu: |
|
65 | 61 | dockerfile: detector/transformers/agent/Dockerfile |
66 | 62 | platforms: linux/amd64 |
67 | 63 | build_args: USE_GPU=true |
68 | | - tag: ${{ github.event.inputs.tag_name }} |
| 64 | + tag: ${{ github.event.client_payload.tag_name }} |
69 | 65 | tag_suffix: _GPU |
70 | 66 | secrets: inherit |
0 commit comments