cloudsmith/cloudsmith-cli

By cloudsmith

โ€ขUpdated 2 months ago

Official Cloudsmith CLI packaged as a minimal Docker image for automation and CI/CD usage.

Image
Developer tools
0

769

cloudsmith/cloudsmith-cli repository overview

Cloudsmith CLI Logo


โ ๐Ÿณ Cloudsmith CLI (Containerized)

Official Docker image for the Cloudsmith CLIโ , built for use in CI/CD pipelines and automation environments.

This image includes the latest Cloudsmith CLI as a zipapp and is optimized for minimal size and fast execution.


โ โœ… Key Features

  • Lightweight Alpine-based Docker image (~20MB compressed)
  • Ships with the versioned zipappโ  of the Cloudsmith CLI
  • Supports API Key authentication out-of-the-box
  • Suitable for CI tools like GitHub Actions, GitLab CI, Bitbucket Pipelines, Jenkins, etc.

โ ๐Ÿ” Authentication

โ 1. API Key (Supported)

Pass your API key using the CLOUDSMITH_API_KEY environment variable:

docker run --rm -e CLOUDSMITH_API_KEY=your-key \
  cloudsmith/cloudsmith-cli:latest \
  whoami
โ 2. OIDC (Manual Setup)

OIDC authentication is not built-in as of now, but can be used by:

  • Performing a token exchange outside the container, taking reference from hereโ 
  • Setting the resulting token as CLOUDSMITH_API_KEY

โ ๐Ÿš€ CI/CD Example (GitHub Actions)

jobs:
  cloudsmith:
    runs-on: ubuntu-latest
    container:
      image: cloudsmith/cloudsmith-cli:1.8.3
    steps:
      - run: cloudsmith whoami
        env:
          CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}

โ ๐Ÿ› ๏ธ Image Details

  • Base Image: python:3.12-alpine
  • CLI Installed: via Zipappโ  and placed at /opt/cloudsmith/cloudsmith
  • Convenience: cloudsmith is symlinked into $PATH


โ ๐Ÿง‘โ€๐Ÿ’ป Maintainers

Maintained by the Cloudsmith Customer Engineering team.
Reach out via support.cloudsmith.ioโ  for feedback or questions.

Tag summary

Content type

Image

Digest

sha256:db6b49505โ€ฆ

Size

26.8 MB

Last updated

2 months ago

Requires Docker Desktop 4.37.1 or later.