supercharge/MongoDB in GitHub Actions

Start a MongoDB server (on default port 27017 or a custom port)

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
mongodb-imageMongoDB image to use (defaults to using "mongo" from Docker Hub but you could also use an image from another repository such as Amazons "public.ecr.aws/docker/library/mongo")nomongo
mongodb-versionMongoDB version to use (default: "latest")nolatest
mongodb-replica-setMongoDB replica set name (no replica set by default)no""
mongodb-portMongoDB port to use (default: 27017)no27017
mongodb-dbMongoDB db to create (default: none)no""
mongodb-usernameMongoDB root username (default: none)no""
mongodb-passwordMongoDB root password (default: none)no""
mongodb-container-nameMongoDB container name (default: "mongodb")nomongodb
mongodb-keyMongoDB key, required if replica set and auth are setup through username and password (no key set by default)no""
mongodb-authsourceMongoDB authenticationDatabase a.k.a authSource to use (default: "admin" based on https://github.com/docker-library/mongo/blob/master/8.0/docker-entrypoint.sh#L372C4-L372C20)noadmin
mongodb-replica-set-hostMongoDB replica set host, must be accessible from both internal container and external usage (default: "localhost")nolocalhost
docker-networkDocker network to attach the MongoDB container to. If not provided, will try to use the default GitHub Actions network if available (github_network_<rand>).no""
docker-network-aliasNetwork alias for the MongoDB container when attaching to a Docker network. If not provided, will use mongodb-container-name inputno""
mongodb-extra-envExtra environment variables to pass to the MongoDB container, one KEY=VALUE per line (e.g. "GLIBC_TUNABLES=glibc.pthread.rseq=1")no""

no outputs