Skip to content

Commit b68a0cd

Browse files
Merge pull request #64 from Sam-Bate-ITV/feature/alternative_image
#62: add option for specifying image
1 parent 0ff4785 commit b68a0cd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,18 @@ jobs:
132132
CI: true
133133
```
134134

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

136148
### With Authentication (MongoDB `--auth` Flag)
137149
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)