Skip to content

Commit 1f93cb7

Browse files
committed
change README based on PR review
1 parent 812452b commit 1f93cb7

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ jobs:
6060
- name: Start MongoDB
6161
uses: supercharge/[email protected]
6262
with:
63-
# Here we are using an image from Amazon's ECR rather than the default image from Docker Hub
64-
mongodb-image: 'public.ecr.aws/docker/library/mongo'
6563
mongodb-version: ${{ matrix.mongodb-version }}
6664

6765
- run: npm install
@@ -248,6 +246,17 @@ jobs:
248246

249247
**Caveat:** due to [this issue](https://github.com/docker-library/mongo/issues/211), you **cannot enable user creation AND replica sets** initially. Therefore, if you use this action to setup a replica set, please create your users through a separate script.
250248

249+
### Using a Custom Mongo Image
250+
You can utilize an alternative Redis image using the `mongodb-image` input:
251+
252+
```yaml
253+
- name: Start MongoDB
254+
uses: supercharge/[email protected]
255+
with:
256+
# Here we are using an image from Amazon's ECR rather than the default image from Docker Hub
257+
mongodb-image: 'public.ecr.aws/docker/library/mongo'
258+
mongodb-version: ${{ matrix.mongodb-version }}
259+
```
251260

252261
## License
253262
MIT © [Supercharge](https://superchargejs.com)

0 commit comments

Comments
 (0)