{"id":15055433,"url":"https://github.com/zachcheung/release-installer","last_synced_at":"2026-01-01T23:05:15.854Z","repository":{"id":248074666,"uuid":"827690637","full_name":"zachcheung/release-installer","owner":"zachcheung","description":"A simple tool to install packages from GitHub/GitLab releases.","archived":false,"fork":false,"pushed_at":"2024-11-15T02:03:49.000Z","size":112,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-20T23:26:22.829Z","etag":null,"topics":["cli","github","github-releases","gitlab","gitlab-releases","go","installer","release-installer"],"latest_commit_sha":null,"homepage":"","language":"Go","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/zachcheung.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-12T07:11:28.000Z","updated_at":"2024-11-15T02:03:52.000Z","dependencies_parsed_at":"2024-07-15T03:26:52.878Z","dependency_job_id":"830f6ba7-9150-420a-9b5f-a1f72effd358","html_url":"https://github.com/zachcheung/release-installer","commit_stats":null,"previous_names":["zachcheung/release-installer"],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachcheung%2Frelease-installer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachcheung%2Frelease-installer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachcheung%2Frelease-installer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachcheung%2Frelease-installer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zachcheung","download_url":"https://codeload.github.com/zachcheung/release-installer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243523118,"owners_count":20304536,"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":["cli","github","github-releases","gitlab","gitlab-releases","go","installer","release-installer"],"created_at":"2024-09-24T21:42:06.949Z","updated_at":"2026-01-01T23:05:15.793Z","avatar_url":"https://github.com/zachcheung.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Release Installer\n\nA simple tool to install packages from GitHub/GitLab releases or Apache HTTP server. Tested with most of the [Prometheus exporters](https://github.com/prometheus/docs/blob/c725947ff1f4aac33ea8664c9dc413ab93fd3ab4/content/docs/instrumenting/exporters.md).\n\n## Features\n\n* Support private repo\n* Support GitLab\n\n## Installation\n\n* install script\n\n```shell\ncurl -fsSL https://raw.githubusercontent.com/zachcheung/release-installer/main/install.sh | sh\n```\n\n* [releases](https://github.com/zachcheung/release-installer/releases)\n\n* go install\n\n```shell\ngo install github.com/zachcheung/release-installer@latest\n```\n\n## Usage\n\n```shell\nrelease-installer [-dir directory] [-exclude pattern] [-pattern asset_pattern] [-provider provider] [-tag tag] [-token token] [-url url] \u003cREPO\u003e\n```\n\nIt is recommended to test in a container before installing a package.\n\n```shell\ndocker run --rm ghcr.io/zachcheung/release-installer -dir /tmp [OPTIONS] \u003cREPO\u003e\n```\n\n#### Examples\n\n* Public GitHub Repo\n\n```console\n/ # release-installer goreleaser/example\n2024/07/15 01:08:46 Downloading example_1.3.0_linux_amd64.tar.gz from https://github.com/goreleaser/example/releases/download/v1.3.0/example_1.3.0_linux_amd64.tar.gz\n2024/07/15 01:08:48 Downloaded example_1.3.0_linux_amd64.tar.gz\n2024/07/15 01:08:48 Installed example to /usr/local/bin\n```\n\n* Private GitHub Repo\n\n```shell\nrelease-installer -token \u003cTOKEN\u003e \u003cPRIVATE_REPO\u003e\n```\n\nThe token should have the `repo` scope if using `Personal access tokens (classic)`.\n\n* Public GitLab Repo\n\n```console\n/ # release-installer -provider gitlab goreleaser/example\n2024/07/12 08:26:25 Downloading example_2.0.7_linux_amd64.tar.gz from https://gitlab.com/goreleaser/example/-/releases/v2.0.7/downloads/example_2.0.7_linux_amd64.tar.gz\n2024/07/12 08:26:25 Downloaded example_2.0.7_linux_amd64.tar.gz\n2024/07/12 08:26:25 Installed example to /usr/local/bin\n```\n\n* Private GitLab Repo (in the Self-Repo CI Job)\n\n```shell\nrelease-installer -provider gitlab -url $CI_SERVER_URL -token $GITLAB_TOKEN $CI_PROJECT_ID\n```\n\nThe `GITLAB_TOKEN` should be set and have at least the `read_api` scope.\n\nIf the value of `-url` contains `gitlab`, the `-provider` can be omitted.\n\n* Apache HTTP Server\n\n```shell\nrelease-installer -provider apache -url https://mmonit.com/monit/dist/binary/ -pattern 'linux-x64.tar.gz$' monit\n```\n\n* Exclude Specific Binaries in the Asset\n\n```shell\nrelease-installer -exclude '/etc/' syncthing/syncthing\n```\n\n#### Supported Providers\n\n* GitHub\n* GitLab\n* Apache HTTP Server\n\nToken is required when repo is private.\n\n#### Supported Compressed Package\n\n* gzip\n* zip\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachcheung%2Frelease-installer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzachcheung%2Frelease-installer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachcheung%2Frelease-installer/lists"}