Skip to content

Commit 7aed58d

Browse files
committed
Build agents concurently
Signed-off-by: David Gageot <david.gageot@docker.com>
1 parent a7abf07 commit 7aed58d

1 file changed

Lines changed: 16 additions & 7 deletions

File tree

Taskfile.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,23 @@ tasks:
7373
desc: Build and Push Docker image
7474
cmd: docker buildx build --push -t docker/cagent {{.BUILD_ARGS}} .
7575

76-
push-agents:
77-
desc: Build Demo dockerized agents
76+
push-agent:
77+
desc: Build dockerized agent
78+
internal: true
7879
vars:
7980
DOCKER_ID:
8081
sh: curl -s --unix-socket ~/Library/Containers/com.docker.docker/Data/backend.sock http://_/registry/info | jq -r .id
8182
depends: ["build"]
82-
cmds:
83-
- ./bin/cagent build --push ./examples/pirate.yaml {{.DOCKER_ID}}/cagent-pirate
84-
- ./bin/cagent build --push ./examples/github.yaml {{.DOCKER_ID}}/cagent-github
85-
- ./bin/cagent build --push ./examples/gopher.yaml {{.DOCKER_ID}}/cagent-gopher
86-
- ./bin/cagent build --push ./examples/mem.yaml {{.DOCKER_ID}}/cagent-mem
83+
cmd: ./bin/cagent build --push ./examples/{{.AGENT}}.yaml {{.DOCKER_ID}}/cagent-{{.AGENT}}
84+
85+
push-agents:
86+
desc: Build dockerized agents
87+
deps:
88+
- task: push-agent
89+
vars: { AGENT: 'pirate' }
90+
- task: push-agent
91+
vars: { AGENT: 'github' }
92+
- task: push-agent
93+
vars: { AGENT: 'gopher' }
94+
- task: push-agent
95+
vars: { AGENT: 'mem' }

0 commit comments

Comments
 (0)