We generate a snapshot build via the package_goreleaser evergreen task (in the goreleaser_mongocli_snapshot variant),
this task runs on master and can be patched at any time.
- package_goreleaser: used with
goreleaserto generate linux, mac and windows builds, the mac build will also be signed and notarized, and the windows msi is generated on a Windows host spawned via evergreen'shost.create
Stable releases are now managed by internal tooling (PCT)
Use the instructions bellow as a fallback.
Package Managers are published after a stable release happens, in which binaries are stored in github releases and also uploaded to our download center (https://www.mongodb.com/try/download/mongocli).
-
Chocolatey release is triggered in https://github.com/mongodb-forks/chocolatey-packages/, the Github Action will trigger every weekday at 4pm (UTC) to check if there are any new releases in https://github.com/mongodb/mongodb-cli/releases/.
-
Homebrew release is triggered in https://github.com/Homebrew/homebrew-core/, which is not maintained by MongoDB rather by homebrew community.
-
Yum and Apt are handled internally via evergreen task
push_stable_mongocli_generate.
Note: This action will only publish a release for maintainers of the cli
To manually generate a new stable release you can run:
./scripts/release.sh v1.0.0Note: Please use the vX.Y.Z format for the version to release. The legacy atlascli/vX.Y.Z / mongocli/vX.Y.Z prefix is no longer used to trigger releases.
This will do the following things:
- Tag a new version, ie:
git tag -a -s v1.0.0 -m "v1.0.0" - Publish the new tag, ie
git push origin v1.0.0 - The evergreen release task will run after a tag event from master.
- If everything goes smoothly the release will be published in the releases page, and download center.
The Software Bill of Materials (SBOM) is a description of the components that make up a software artifact.
We use go version to generate the SBOM for MongoCLI binaries. You can generate the SBOM via the following command:
go version -m <path_to_mongoCLI_binary>