Skip to content

action-mongo-tools

Actions
Github action to install mongoDB database mongo-shell and/or mongo tools (mongodump mongorestore..)
v1.0.4
Latest
Star (4)

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.

For install performance reason, man/doc are not unpack by default. You can override this by keeping them with

env:
  MONGOTOOLS_KEEP_MAN: true

Immutable releases

For security reason, since #8, this repository rely on immutable releases. Instead of using @stable as tag, you could rely on fixed immutable release (ex. @v1.0.4).

contributing

  • PRs extending the functionality are welcome and will be reviewed.
  • more details on CONTRIBUTING and TESTING

use cases

NodeJS automate backup policy

This action adds some binaries used by project having mongo as dependencies.

For example, cf. boly38/node-mongotools which is a node wrapper for mongo dump/restore binaries and let you create your own mongo backup using NodeJS App, then GitHub Actions.

action-mongo-tools is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Github action to install mongoDB database mongo-shell and/or mongo tools (mongodump mongorestore..)
v1.0.4
Latest

action-mongo-tools is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.