Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 2.42 KB

RELEASING.md

File metadata and controls

52 lines (32 loc) · 2.42 KB

Releasing

Daily snapshots

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 goreleaser to 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's host.create

Stable release

Stable releases are now managed by internal tooling (PCT)

Use the instructions bellow as a fallback.

Package Managers

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).

Deprecated

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.0

Note: 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:

  1. Tag a new version, ie: git tag -a -s v1.0.0 -m "v1.0.0"
  2. Publish the new tag, ie git push origin v1.0.0
  3. The evergreen release task will run after a tag event from master.
  4. If everything goes smoothly the release will be published in the releases page, and download center.

Generate the SBOM

The Software Bill of Materials (SBOM) is a description of the components that make up a software artifact.

MongoCLI Binary

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>