From 914ea59a7f3e27ba61e71bd241972abe0fdb5988 Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Tue, 15 Aug 2023 01:15:05 -0500 Subject: [PATCH] ci: Add apt and rpm repos --- .github/workflows/build.yml | 1 + .goreleaser.yaml | 20 +++++++++ README.md | 88 +++++++++++++++++++++++++++++++------ 3 files changed, 96 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 40055a6..4e65d6f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -74,6 +74,7 @@ jobs: args: ${{ steps.vars.outputs.args }} env: GITHUB_TOKEN: ${{ github.token }} + FURY_TOKEN: ${{ secrets.FURY_TOKEN }} - uses: actions/upload-artifact@v3 with: name: dist diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 56e16bc..c97133a 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -58,3 +58,23 @@ docker_manifests: name_template: ghcr.io/gabe565/{{ .ProjectName }}:{{ .Major }} - <<: *docker_manifests name_template: ghcr.io/gabe565/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }} +nfpms: + - id: packages + vendor: Gabe Cook + homepage: https://github.com/gabe565/sponsorblockcast-go + description: A Go program that skips sponsored YouTube content on all local Google Cast devices + license: GPL-3.0 License + maintainer: Gabe Cook + formats: + - deb + - rpm + contents: + - src: ./sponsorblockcast-go.service + dst: /etc/systemd/system/sponsorblockcast-go.service + type: config +publishers: + - name: fury.io + ids: + - packages + dir: "{{ dir .ArtifactPath }}" + cmd: curl -sf -Fpackage=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/gabe565/ diff --git a/README.md b/README.md index ee8d018..c06b364 100644 --- a/README.md +++ b/README.md @@ -9,24 +9,86 @@ Additionally, sponsorblockcast-go will look for skippable YouTube ads, and autom ## Installation ### Docker Image -You can [install Docker](https://docs.docker.com/engine/install/) directly or use [Docker Compose](https://docs.docker.com/compose/install/) (Or use Podman, Portainer, etc). Please note you *MUST* use the `host` network as shown below for cli or in the example `docker-compose` file. -#### Docker -Run the below commands as root or a member of the `docker` group: -```shell -docker run --network=host --name=sponsorblockcast-go ghcr.io/gabe565/sponsorblockcast-go -``` +
+ Click to expand -#### Docker Compose -First you will need a `docker-compose.yaml` file, such as the [one included in this repo](docker-compose.yaml). Run the below commands as root or a member of the `docker` group: -```shell -docker compose up -d -``` + You can [install Docker](https://docs.docker.com/engine/install/) directly or use [Docker Compose](https://docs.docker.com/compose/install/) (Or use Podman, Portainer, etc). Please note you *MUST* use the `host` network as shown below for cli or in the example `docker-compose` file. + + #### Docker + Run the below commands as root or a member of the `docker` group: + ```shell + docker run --network=host --name=sponsorblockcast-go ghcr.io/gabe565/sponsorblockcast-go + ``` + + #### Docker Compose + First you will need a `docker-compose.yaml` file, such as the [one included in this repo](docker-compose.yaml). Run the below commands as root or a member of the `docker` group: + ```shell + docker compose up -d + ``` +
+ + +### APT Repository (Ubuntu, Debian) + +
+ Click to expand + +1. If you don't have it already, install the `ca-certificates` package + ```shell + sudo apt install ca-certificates + ``` + +2. Add gabe565 apt repository + ``` + echo 'deb [trusted=yes] https://apt.gabe565.com /' | sudo tee /etc/apt/sources.list.d/gabe565.list + ``` + +3. Update apt repositories + ```shell + sudo apt update + ``` + +4. Install sponsorblockcast-go + ```shell + sudo apt install sponsorblockcast-go + ``` +
+ +### RPM Repository (CentOS, RHEL) + +
+ Click to expand + +1. If you don't have it already, install the `ca-certificates` package + ```shell + sudo yum install ca-certificates + ``` + +2. Add gabe565 rpm repository to `/etc/yum.repos.d/gabe565.repo` + ```ini + [gabe565] + name=gabe565 + baseurl=https://rpm.gabe565.com + enabled=1 + gpgcheck=0 + ``` + +3. Install sponsorblockcast-go + ```shell + sudo yum install sponsorblockcast-go + ``` +
### Manual Installation -#### Instructions -Download and run the [latest release binary](https://github.com/gabe565/sponsorblockcast-go/releases/latest) for your system and architecture. +
+ Click to expand + + #### Instructions + + Download and run the [latest release binary](https://github.com/gabe565/sponsorblockcast-go/releases/latest) for your system and architecture. +
## Usage Run `sponsorblockcast-go` from a terminal or activate the service with `systemctl enable --now sponsorblockcast-go`.