Documentation
¶
Overview ¶
Command cloudsmith publishes Linux packages (.deb and .rpm) to a Cloudsmith repository via the public REST API.
Like cmd/packagecloud, this is a small release-time tool: goreleaser can't push to Cloudsmith without a Pro licence, so we drive the API directly instead.
Uploading a package is a two-step flow:
- PUT the file to upload.cloudsmith.io with a Content-Sha256 header. The response returns an identifier for the stored blob.
- POST that identifier to api.cloudsmith.io/v1/packages/.../upload/<format>/ along with the target distribution.
Every package is published to the generic "any-distro/any-version" distribution, so a single upload serves every distro and version.
Usage:
CLOUDSMITH_API_KEY=... go run ./cmd/cloudsmith push deb --repo circleci-deps/public dist/*.deb CLOUDSMITH_API_KEY=... go run ./cmd/cloudsmith push rpm --repo circleci-deps/public dist/*.rpm
Click to show internal directories.
Click to hide internal directories.