{"id":43846940,"url":"https://github.com/cloudsmith-io/cloudsmith-examples","last_synced_at":"2026-02-06T06:06:08.612Z","repository":{"id":34757501,"uuid":"112249514","full_name":"cloudsmith-io/cloudsmith-examples","owner":"cloudsmith-io","description":"Example Projects for Cloudsmith Integration","archived":false,"fork":false,"pushed_at":"2025-01-14T12:53:30.000Z","size":253,"stargazers_count":13,"open_issues_count":9,"forks_count":7,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-05-18T10:34:26.591Z","etag":null,"topics":["cloudsmith","examples","repositories"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudsmith-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-27T21:15:26.000Z","updated_at":"2025-05-09T09:16:50.000Z","dependencies_parsed_at":"2024-02-05T15:26:57.716Z","dependency_job_id":"6f1f4fdb-22fd-452f-ae17-030461687eda","html_url":"https://github.com/cloudsmith-io/cloudsmith-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cloudsmith-io/cloudsmith-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudsmith-io%2Fcloudsmith-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudsmith-io%2Fcloudsmith-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudsmith-io%2Fcloudsmith-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudsmith-io%2Fcloudsmith-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudsmith-io","download_url":"https://codeload.github.com/cloudsmith-io/cloudsmith-examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudsmith-io%2Fcloudsmith-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29153201,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T02:39:25.012Z","status":"ssl_error","status_checked_at":"2026-02-06T02:37:22.784Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudsmith","examples","repositories"],"created_at":"2026-02-06T06:06:06.568Z","updated_at":"2026-02-06T06:06:08.600Z","avatar_url":"https://github.com/cloudsmith-io.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloudsmith Examples\n\n[![CircleCI](https://circleci.com/gh/cloudsmith-io/cloudsmith-examples.svg?style=svg)](https://circleci.com/gh/cloudsmith-io/cloudsmith-examples)\n\n\u003e Be Awesome. [Automate Everything](https://corp.cloudsmith.io/tao/).\n\nThis repository provides example projects for most of the [packaging formats supported by Cloudsmith](https://cloudsmith.io/#package-formats). It demonstrates how to automate build and upload for each package format using both the [Cloudsmith CLI](https://github.com/cloudsmith-io/cloudsmith-cli) and native tooling (where available).\n\nThe artifacts generated by this repository will be uploaded automatically to the public [Cloudsmith examples repository](https://cloudsmith.io/~cloudsmith/repos/examples) by CI.\n\n## Usage\n\n### Dependencies\n\nTo run the examples locally you'll need to install a few dependencies:\n\n- [Docker](https://www.docker.com/get-started)\n- [CircleCI CLI](https://circleci.com/docs/2.0/local-cli/)\n\nYou'll need to create a [Cloudsmith repository](https://cloudsmith.io/repo/create/) to store the generated artifacts.\n\n### Configuration\n\nThe examples are configured using environment variables. You can set these manually in your terminal:\n\n```bash\n$ export CLOUDSMITH_API_KEY=YOUR_API_KEY_HERE\n$ export CLOUDSMITH_REPOSITORY=your-name-or-org/your-repository\n$ export CLOUDSMITH_REPOSITORY_IS_PRIVATE=yes/no\n```\n\nOr use a tool like [forego](https://github.com/ddollar/forego) (`forego run ...`) to load them from a `.env` file in the root of the examples repository:\n\n```bash\nCLOUDSMITH_API_KEY=YOUR_API_KEY_HERE\nCLOUDSMITH_REPOSITORY=your-name-or-org/your-repository\nCLOUDSMITH_REPOSITORY_IS_PRIVATE=yes/no\n```\n\n### Running the examples\n\nTo run a single example invoke the `run-example` script, passing the name of the example:\n\n```bash\n$ ./bin/run-example python-native\n```\n\nTo run all examples use the `run-examples` script, passing no arguments:\n\n```bash\n$ ./bin/run-examples\n```\n\n## Structure\n\nAll example projects live in the [examples/](https://github.com/cloudsmith-io/cloudsmith-examples/tree/master/examples) directory, one per folder.\n\nInside each example directory is a consistent structure:\n\n- `src/`: Source code for the example package in each format.\n- `prepare.sh`: A script which performs any setup or initialisation required to build and publish the example package.\n- `build.sh`: A script which builds the example package into an artifact that can be published to Cloudsmith.\n- `deploy.sh`: A script that publishes the built artifact(s) to Cloudsmith.\n- `install.sh`: A script which sets up a new environment and installs the recently published package from Cloudsmith.\n\nThe scripts `prepare.sh` and `deploy.sh` are optional. If not present they will be skipped.\n\nExample packages are purposefully as minimal as possible to show the minimum configuration required to integrate with Cloudsmith.\n\n## EOF\n\nThis quality product was brought to you by [Cloudsmith](https://cloudsmith.io) and the [fine folks who have contributed](https://github.com/cloudsmith-io/cloudsmith-examples/blob/master/CONTRIBUTORS.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudsmith-io%2Fcloudsmith-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudsmith-io%2Fcloudsmith-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudsmith-io%2Fcloudsmith-examples/lists"}