-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from Sam-Bate-ITV/feature/alternative_image
#62: add option for specifying image
- Loading branch information
Showing
4 changed files
with
38 additions
and
9 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 |
---|---|---|
|
@@ -246,6 +246,18 @@ 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 MongoDB docker 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) | ||
|
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
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
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