File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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' }
You can’t perform that action at this time.
0 commit comments