Skip to content

Latest commit

 

History

History
74 lines (48 loc) · 3.86 KB

RELEASING.md

File metadata and controls

74 lines (48 loc) · 3.86 KB

Releasing

Daily snapshots

We generate a snapshot build via the goreleaser_snaphot and go_msi_snapshot evergreen tasks, these tasks run on master and can be patched at any time.

  • goreleaser_snaphot: used with goreleaser to generate linux, mac and windows builds, the mac build will also be signed and notarized
  • go_msi_snapshot: used with go-msi to generate a Windows msi installer

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/atlascli.

Docker Image

Our Docker image release for AtlasCLI is managed through the docker-release.yml workflow. This process is automated to run daily, ensuring the latest versions of the image dependencies are updated. github_action

Release Steps

Step 1: Build and Stage

The AtlasCLI Docker image is built from the (Dockerfile) and tagged in three ways: latest, vX.Y.Z (reflecting the latest release version, e.g., v1.22.0), and vX.Y.Z-date (adding the current date, e.g., v1.22.0-2024-01-01). This image is initially published to a staging registry to prepare for signature in the next step.

Step 2: Sign and Publish

We retrieve the image from the staging registry and use its OCI index to identify the three relevant digests. Each digest is signed using cosign, and the corresponding signature is stored in the MongoDB cosign repository. The signed image is then pushed to the public repository.

Step 3: Verify Signature

The final step involves verifying the Docker image's signature to confirm its authenticity.

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 atlascli/v1.0.0

Note: Please use the atlascli/vX.Y.Z format for the version to release

This will do the following things:

  1. Tag a new version, ie: git tag -a -s atlascli/v1.0.0 -m "atlascli/v1.0.0"
  2. Publish the new tag, ie git push origin atlascli/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.

Atlas CLI Binary

We use go version to generate the SBOM for Atlas CLI binaries. You can generate the SBOM via the following command:

go version -m <path_to_atlasCLI_binary>

Atlas CLI Docker image

We use docker sbom to generate the SBOM for the Atlas CLI docker image. You can generate the SBOM via the following command:

docker sbom mongodb/atlas:latest