Skip to content

Commit 579dd97

Browse files
committed
adding the yq stuff
1 parent 90d93e7 commit 579dd97

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/agentex-tutorials-test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,13 @@ jobs:
2929
cd scale-agentex/agentex
3030
echo "🔧 Configuring AgentEx container for GitHub Actions networking..."
3131
32+
# Install yq for YAML manipulation
33+
sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
34+
sudo chmod +x /usr/local/bin/yq
35+
3236
# Add extra_hosts to agentex service to make host.docker.internal work
3337
# This allows the AgentEx container to reach the GitHub runner host
34-
sed -i '/container_name: agentex/a\ extra_hosts:\n - "host.docker.internal:host-gateway"' docker-compose.yml
38+
yq eval '.services.agentex.extra_hosts = ["host.docker.internal:host-gateway"]' -i docker-compose.yml
3539
3640
echo "✅ Added extra_hosts configuration to agentex service"
3741
echo "🔍 Updated agentex service config:"

0 commit comments

Comments
 (0)