Skip to content

Commit 48b0a13

Browse files
Merge pull request #87 from step-security/fix_Readme-Updates
chore: readme updated
2 parents 3323af7 + 7a605db commit 48b0a13

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ jobs:
3535
- name: Start MongoDB
3636
uses: step-security/[email protected]
3737
with:
38-
# Here we are using an image from Amazon's ECR rather than the default image from Docker Hub
39-
mongodb-image: 'public.ecr.aws/docker/library/mongo'
4038
mongodb-version: ${{ matrix.mongodb-version }}
4139

4240
- run: npm install
@@ -134,18 +132,6 @@ jobs:
134132
CI: true
135133
```
136134

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

150136
### With Authentication (MongoDB `--auth` Flag)
151137
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.
@@ -234,3 +220,17 @@ jobs:
234220
```
235221

236222
**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.
223+
224+
### Using a Custom Mongo Image
225+
You can utilize an alternative MongoDB docker image using the `mongodb-image` input:
226+
227+
228+
```yaml
229+
- name: Start MongoDB
230+
uses: step-security/[email protected]
231+
with:
232+
# Here we are using an image from Amazon's ECR rather than the default image from Docker Hub
233+
mongodb-image: 'public.ecr.aws/docker/library/mongo'
234+
mongodb-version: ${{ matrix.mongodb-version }}
235+
```
236+

0 commit comments

Comments
 (0)