Skip to content

Commit

Permalink
ci: Add apt and rpm repos
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Aug 15, 2023
1 parent 38ec289 commit 914ea59
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 13 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 20 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
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/
88 changes: 75 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
<details>
<summary>Click to expand</summary>

#### 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
```
</details>


### APT Repository (Ubuntu, Debian)

<details>
<summary>Click to expand</summary>

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
```
</details>

### RPM Repository (CentOS, RHEL)

<details>
<summary>Click to expand</summary>

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
```
</details>

### Manual Installation
#### Instructions

Download and run the [latest release binary](https://github.com/gabe565/sponsorblockcast-go/releases/latest) for your system and architecture.
<details>
<summary>Click to expand</summary>

#### Instructions

Download and run the [latest release binary](https://github.com/gabe565/sponsorblockcast-go/releases/latest) for your system and architecture.
</details>

## Usage
Run `sponsorblockcast-go` from a terminal or activate the service with `systemctl enable --now sponsorblockcast-go`.
Expand Down

0 comments on commit 914ea59

Please sign in to comment.