Skip to content

Commit 609da4a

Browse files
change README based on PR review
1 parent e4c5734 commit 609da4a

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ jobs:
7575
- name: Start MongoDB
7676
uses: step-security/[email protected]
7777
with:
78-
# Here we are using an image from Amazon's ECR rather than the default image from Docker Hub
79-
mongodb-image: 'public.ecr.aws/docker/library/mongo'
8078
mongodb-version: ${{ matrix.mongodb-version }}
8179
mongodb-replica-set: test-rs
8280
mongodb-port: 42069
@@ -134,6 +132,17 @@ jobs:
134132
CI: true
135133
```
136134

135+
### Using a Custom Mongo Image
136+
You can utilize an alternative Redis image using the `mongodb-image` input:
137+
138+
```yaml
139+
- name: Start MongoDB
140+
uses: supercharge/[email protected]
141+
with:
142+
# Here we are using an image from Amazon's ECR rather than the default image from Docker Hub
143+
mongodb-image: 'public.ecr.aws/docker/library/mongo'
144+
mongodb-version: ${{ matrix.mongodb-version }}
145+
```
137146

138147
### With Authentication (MongoDB `--auth` Flag)
139148
Setting the `mongodb-username` and `mongodb-password` inputs. As per the [Dockerhub documentation](https://hub.docker.com/_/mongo), this automatically creates an admin user and enables `--auth` mode.

0 commit comments

Comments
 (0)