Skip to content

Commit 1fa12db

Browse files
committed
feat: proper support network and network-alias
1 parent fa5f6bd commit 1fa12db

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

start-mongodb.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ DOCKER_NETWORK_ALIAS=${12:-$MONGODB_CONTAINER_NAME}
1616

1717
# If DOCKER_NETWORK not provided, try to detect the default GitHub Actions network
1818
if [ -z "$DOCKER_NETWORK" ]; then
19-
if docker network ls --format '{{.Name}}' | grep -q '^github_network$'; then
20-
DOCKER_NETWORK=github_network
21-
fi
19+
DOCKER_NETWORK=$(docker network ls --no-trunc --format '{{.Name}}' | grep -q '^github_network')
2220
fi
2321

2422
# Build network args if a network is set

0 commit comments

Comments
 (0)