Skip to content

Commit

Permalink
chore: Add brew support (#64)
Browse files Browse the repository at this point in the history
* go mod tidy

* update goreleaser config

* update readme

* reorder installation methods
  • Loading branch information
mircea-pavel-anton authored Oct 1, 2024
1 parent 559940e commit 4c596b2
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 105 deletions.
14 changes: 14 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,20 @@ nfpms:
license: MIT
formats: [deb, apk, rpm]

brews:
- name: talswitcher
description: A simple tool to help manage multiple talosconfig files.
license: MIT
homepage: https://github.com/mirceanton/{{.ProjectName}}
directory: Formula
repository:
owner: mirceanton
name: homebrew-taps
test: system "#{bin}/talswitcher", "--help"
commit_author:
name: mr-borboto[bot]
email: 170036086+mr-borboto[bot]@users.noreply.github.com

dockers:
- image_templates:
- "ghcr.io/mirceanton/{{.ProjectName}}:v{{.Version}}-amd64"
Expand Down
30 changes: 22 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,28 @@ Precompiled binaries are available for various platforms. You can download the l
mv talswitcher /usr/local/bin/
```

### Running via Docker

`talswitcher` is also available as a Docker container:

```bash
docker pull ghcr.io/mirceanton/talswitcher
```

### Install via homebrew

1. Add the tap

```bash
brew tap mirceanton/taps
```

2. Install `talswitcher`

```bash
brew install talswitcher
```

### Build from Source

1. Clone the repository:
Expand All @@ -50,14 +72,6 @@ Precompiled binaries are available for various platforms. You can download the l
go build -o talswitcher
```

### Running via Docker

`talswitcher` is also available as a Docker container:

```bash
docker pull ghcr.io/mirceanton/talswitcher
```

## Usage

`talswitcher` can be used both interactively and non-interactively.
Expand Down
Loading

0 comments on commit 4c596b2

Please sign in to comment.