-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
812452b
commit 1f93cb7
Showing
1 changed file
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,8 +60,6 @@ jobs: | |
- name: Start MongoDB | ||
uses: supercharge/[email protected] | ||
with: | ||
# Here we are using an image from Amazon's ECR rather than the default image from Docker Hub | ||
mongodb-image: 'public.ecr.aws/docker/library/mongo' | ||
mongodb-version: ${{ matrix.mongodb-version }} | ||
|
||
- run: npm install | ||
|
@@ -248,6 +246,17 @@ jobs: | |
|
||
**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. | ||
|
||
### Using a Custom Mongo Image | ||
You can utilize an alternative Redis image using the `mongodb-image` input: | ||
|
||
```yaml | ||
- name: Start MongoDB | ||
uses: supercharge/[email protected] | ||
with: | ||
# Here we are using an image from Amazon's ECR rather than the default image from Docker Hub | ||
mongodb-image: 'public.ecr.aws/docker/library/mongo' | ||
mongodb-version: ${{ matrix.mongodb-version }} | ||
``` | ||
|
||
## License | ||
MIT © [Supercharge](https://superchargejs.com) | ||
|