Skip to content

Commit db73117

Browse files
author
Petr Iosipov
committed
changed to repository dispatch
1 parent d1b26f6 commit db73117

1 file changed

Lines changed: 8 additions & 12 deletions

File tree

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
name: Build and Push Agent Images
22

33
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]
106

117
jobs:
128
yolo-cpu:
@@ -15,7 +11,7 @@ jobs:
1511
repo_name: yolo_agent
1612
dockerfile: detector/yolo/agent/Dockerfile
1713
platforms: linux/amd64,linux/arm64
18-
tag: ${{ github.event.inputs.tag_name }}
14+
tag: ${{ github.event.client_payload.tag_name }}
1915
secrets: inherit
2016

2117
yolo-gpu:
@@ -25,7 +21,7 @@ jobs:
2521
dockerfile: detector/yolo/agent/Dockerfile
2622
platforms: linux/amd64
2723
build_args: USE_GPU=true
28-
tag: ${{ github.event.inputs.tag_name }}
24+
tag: ${{ github.event.client_payload.tag_name }}
2925
tag_suffix: _GPU
3026
secrets: inherit
3127

@@ -35,7 +31,7 @@ jobs:
3531
repo_name: sam2_agent
3632
dockerfile: tracker/sam2/agent/Dockerfile
3733
platforms: linux/amd64,linux/arm64
38-
tag: ${{ github.event.inputs.tag_name }}
34+
tag: ${{ github.event.client_payload.tag_name }}
3935
secrets: inherit
4036

4137
sam2-gpu:
@@ -45,7 +41,7 @@ jobs:
4541
dockerfile: tracker/sam2/agent/Dockerfile
4642
platforms: linux/amd64
4743
build_args: USE_GPU=true
48-
tag: ${{ github.event.inputs.tag_name }}
44+
tag: ${{ github.event.client_payload.tag_name }}
4945
tag_suffix: _GPU
5046
secrets: inherit
5147

@@ -55,7 +51,7 @@ jobs:
5551
repo_name: transformers_agent
5652
dockerfile: detector/transformers/agent/Dockerfile
5753
platforms: linux/amd64,linux/arm64
58-
tag: ${{ github.event.inputs.tag_name }}
54+
tag: ${{ github.event.client_payload.tag_name }}
5955
secrets: inherit
6056

6157
transformers-gpu:
@@ -65,6 +61,6 @@ jobs:
6561
dockerfile: detector/transformers/agent/Dockerfile
6662
platforms: linux/amd64
6763
build_args: USE_GPU=true
68-
tag: ${{ github.event.inputs.tag_name }}
64+
tag: ${{ github.event.client_payload.tag_name }}
6965
tag_suffix: _GPU
7066
secrets: inherit

0 commit comments

Comments
 (0)