Skip to content

add mongo shell and/or mongo tools to github action (Ubuntu-2204 runner)

License

Notifications You must be signed in to change notification settings

boly38/action-mongo-tools

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

action-mongo-tools

Add mongo shell and/or mongo tools to github actions

  • Ubuntu-22.04 runner comes without mongo binaries.

In order to add mongosh and mongodump/mongorestore, you could add this action.

Example:

- name: Setup mongo tools
  uses: boly38/action-mongo-tools@stable

You could select which one to install using parameters:

Example that will install mongosh only

 - name: Setup mongo tools - only shell
   uses: boly38/action-mongo-tools@stable
   with:
     mongo-shell: "true"
     mongo-tools: "false"

NB: true is default value for parameters so could be omitted.

Another working sample: cf. examples

contributing

PRs extending the functionality are welcome and will be reviewed.

About

add mongo shell and/or mongo tools to github action (Ubuntu-2204 runner)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages