INNER CODE UNIT · Shell
DOCKER_NETWORK_ALIAS
supercharge/mongodb-github-action · start-mongodb.sh:16
DOCKER_NETWORK_ALIAS=${13:-$MONGODB_CONTAINER_NAME}
MONGODB_EXTRA_ENV=${14}
# If DOCKER_NETWORK not provided, try to detect the default GitHub Actions network
if [ -z "$DOCKER_NETWORK" ]; then
DOCKER_NETWORK=$(docker network ls --no-trunc --format '{{.Name}}' | grep '^github_network')
fi
# Build network args if a network is set
NETWORK_ARGS=""
if [ -n "$DOCKER_NETWORK" ]; then
NETWORK_ARGS="--network $DOCKER_NETWORK --network-alias $DOCKER_NETWORK_ALIAS"
fi
# Build extra -e flags from newline-separated KEY=VALUE pairs
EXTRA_ENV_ARGS=""
if [ -n "$MONGODB_EXTRA_ENV" ]; then
while IFS= read -r env_line; do