supercharge/MongoDB in GitHub Actions
Start a MongoDB server (on default port 27017 or a custom port)
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| mongodb-image | MongoDB 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") | no | mongo |
| mongodb-version | MongoDB version to use (default: "latest") | no | latest |
| mongodb-replica-set | MongoDB replica set name (no replica set by default) | no | "" |
| mongodb-port | MongoDB port to use (default: 27017) | no | 27017 |
| mongodb-db | MongoDB db to create (default: none) | no | "" |
| mongodb-username | MongoDB root username (default: none) | no | "" |
| mongodb-password | MongoDB root password (default: none) | no | "" |
| mongodb-container-name | MongoDB container name (default: "mongodb") | no | mongodb |
| mongodb-key | MongoDB key, required if replica set and auth are setup through username and password (no key set by default) | no | "" |
| mongodb-authsource | MongoDB 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) | no | admin |
| mongodb-replica-set-host | MongoDB replica set host, must be accessible from both internal container and external usage (default: "localhost") | no | localhost |
| docker-network | Docker 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-alias | Network alias for the MongoDB container when attaching to a Docker network. If not provided, will use mongodb-container-name input | no | "" |
| mongodb-extra-env | Extra environment variables to pass to the MongoDB container, one KEY=VALUE per line (e.g. "GLIBC_TUNABLES=glibc.pthread.rseq=1") | no | "" |
Outputs
no outputs