{"id":21034681,"url":"https://github.com/lpenz/ghaction-packagecloud","last_synced_at":"2025-05-15T13:33:00.735Z","repository":{"id":43872652,"uuid":"270396331","full_name":"lpenz/ghaction-packagecloud","owner":"lpenz","description":"Github docker action that deploys debian packages to packagecloud.io","archived":false,"fork":false,"pushed_at":"2022-10-24T22:19:02.000Z","size":75,"stargazers_count":4,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-22T10:48:32.278Z","etag":null,"topics":["docker","github-actions","github-actions-docker","packagecloud"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lpenz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-07T18:31:33.000Z","updated_at":"2022-07-27T08:56:59.000Z","dependencies_parsed_at":"2023-01-04T21:34:44.000Z","dependency_job_id":null,"html_url":"https://github.com/lpenz/ghaction-packagecloud","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpenz%2Fghaction-packagecloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpenz%2Fghaction-packagecloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpenz%2Fghaction-packagecloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpenz%2Fghaction-packagecloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lpenz","download_url":"https://codeload.github.com/lpenz/ghaction-packagecloud/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254349642,"owners_count":22056388,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker","github-actions","github-actions-docker","packagecloud"],"created_at":"2024-11-19T13:07:59.720Z","updated_at":"2025-05-15T13:33:00.727Z","avatar_url":"https://github.com/lpenz.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![marketplace](https://img.shields.io/badge/marketplace-deploy--to--packagecloud--io-blue?logo=github)](https://github.com/marketplace/actions/deploy-to-packagecloud-io)\n[![CI](https://github.com/lpenz/ghaction-packagecloud/actions/workflows/ci.yml/badge.svg)](https://github.com/lpenz/ghaction-packagecloud/actions/workflows/ci.yml)\n[![github](https://img.shields.io/github/v/release/lpenz/ghaction-packagecloud?include_prereleases\u0026label=release\u0026logo=github)](https://github.com/lpenz/ghaction-packagecloud/releases)\n[![docker](https://img.shields.io/docker/v/lpenz/ghaction-packagecloud?label=release\u0026logo=docker\u0026sort=semver)](https://hub.docker.com/repository/docker/lpenz/ghaction-packagecloud)\n\n# ghaction-packagecloud\n\n**ghaction-packagecloud** is a simple github docker action that\ndeploys debian packages to [packagecloud.io](https://packagecloud.io).\n\n\n## Usage\n\nThe action runs the following:\n\n```sh\npackage_cloud push \u003cuser\u003e/\u003crepository\u003e \u003cfiles\u003e\n```\n\n- `user` is the packagecloud.io user; it doesn't have to be specified\n  is the user is equal to the github user.\n- `repository` is the only required parameter; it will usually include\n  the OS and version, example: `reponame/ubuntu/precise`. That's\n  better documented in https://packagecloud.io/docs#push_pkg\n- `files` has the files to upload. Also optional - if not defined, the\n  action uses all `.deb` files under the current directory.\n\nBesides these parameters, the `package_cloud` script also needs the\nAPI Token to update the repository. You can get that from\nhttps://packagecloud.io/api_token after logging in. To pass it to the\ngithub action, configure it as a secret in github - you can do that\nby going to the repository's page, then going\nto *Settings*, *Secrets* - and then pass it using the\n`PACKAGECLOUD_TOKEN` environment variable.\n\nExample workflow file:\n\n```yml\njobs:\n  deploy:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - \u003cbuild debian package\u003e\n      - uses: docker://lpenz/ghaction-packagecloud:0.4\n        with:\n          repository: lpenz/debian/stretch\n        env:\n          PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}\n```\n\nFor a more complete example, here are some github repositories that use this action:\n[execpermfix](https://github.com/lpenz/execpermfix),\n[ogle](https://github.com/lpenz/ogle),\n[ftpsmartsync](https://github.com/lpenz/ftpsmartsync).\n\n\n## Inputs\n\n### `user`\n\npackagecloud.io username. Optional, the default is the github user.\n\n### `repository`\n\npackagecloud.io repository. Required.\n\n### `directory`\n\nEnter this directory before pushing. Optional.\n\nMostly useful when the debian package is created in a subdirectory of\nthe git repository.\n\n### `files`\n\n.deb files to push.\n\nIf not specified, use all .deb files under the current directory. If\nnone are found, search in all subdirectories.\n\n\n## Using in other environments\n\nThis github action is actually a docker image that can be used locally\nor even in [travis-ci](https://travis-ci.com). To do that, first\ndownload the image from\n[docker hub](https://hub.docker.com/r/lpenz/ghaction-packagecloud):\n\n```sh\ndocker pull lpenz/ghaction-packagecloud:0.4\n```\n\nThen, run a container in the project's directory, for instance:\n\n```sh\ndocker run --rm -t -u \"$UID\" -w \"$PWD\" -v \"${PWD}:${PWD}\" \\\n  -e INPUT_REPOSITORY=lpenz/debian/stretch \\\n  -e PACKAGECLOUD_TOKEN \\\n  lpenz/ghaction-packagecloud:0.4\n```\n\nIt's worth pointing out that action parameters are passed as\nupper case environment variables, prefixed with `INPUT_`.\n\nThe following `.travis.yml` runs the same thing in travis-ci:\n\n```yml\n---\nlanguage: generic\njobs:\n  include:\n    - install: docker pull lpenz/ghaction-packagecloud:0.4\n    - script: -\u003c\n        docker run --rm -t -u \"$UID\" -w \"$PWD\" -v \"${PWD}:${PWD}\"\n          -e INPUT_REPOSITORY=raspbian/debian/stretch\n          -e PACKAGECLOUD_TOKEN\n          lpenz/ghaction-packagecloud:0.4\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpenz%2Fghaction-packagecloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flpenz%2Fghaction-packagecloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpenz%2Fghaction-packagecloud/lists"}