Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,8 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# PAT with `contents: write` on remetric-dev/homebrew-tap.
# Required for goreleaser to push the brew formula on every tag.
# If the secret is missing the release job fails fast with a
# clear "missing env" error before any artifacts are uploaded.
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
19 changes: 19 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,25 @@ docker_manifests:
- "ghcr.io/remetric-dev/remetric:latest-amd64"
- "ghcr.io/remetric-dev/remetric:latest-arm64"

homebrew_casks:
- name: remetric
repository:
owner: remetric-dev
name: homebrew-tap
branch: main
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
directory: Casks
homepage: "https://remetric.dev"
description: "Re-metric your stack - find waste in Prometheus, Grafana & Loki"
binary: "remetric"
commit_author:
name: "remetric-dev-bot"
email: "noreply@remetric.dev"
# Publish on every tag, including pre-releases (v0.1.0-rc.N), so we can
# validate the tap end-to-end before v0.1.0. Switch to `auto` post-v0.1
# if you want to stop polluting the tap with alphas.
skip_upload: "false"

release:
prerelease: auto
draft: false
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,22 @@ Installs the latest release into `$HOME/.local/bin`. Override with
`REMETRIC_INSTALL_DIR=/usr/local/bin sh install.sh` (may need `sudo`) or pin a
specific version via `REMETRIC_VERSION=v0.1.0 sh install.sh`.

### Homebrew (macOS / Linux)

```bash
brew install remetric-dev/tap/remetric
```

Or, two-line for shorter subsequent invocations:

```bash
brew tap remetric-dev/tap
brew install remetric
```

The formula is auto-published on each release from
[`remetric-dev/homebrew-tap`](https://github.com/remetric-dev/homebrew-tap).

### Docker

Multi-arch image (`linux/amd64`, `linux/arm64`).
Expand Down Expand Up @@ -263,9 +279,8 @@ class with detection rules, fix snippets, and false-positive notes.
## What's still missing in v0.1

- No dashboard sprawl analyzer.
- No Homebrew tap (binaries + Docker image already ship; see Install above).

These land in subsequent releases.
This lands in a subsequent release.

## CI integration

Expand Down
6 changes: 6 additions & 0 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ curl -sSL https://remetric.dev/install.sh | sh
Override the destination with `REMETRIC_INSTALL_DIR=/usr/local/bin sh install.sh`,
or pin a specific version via `REMETRIC_VERSION=v0.1.0 sh install.sh`.

On macOS or Linux with [Homebrew](https://brew.sh):

```bash
brew install remetric-dev/tap/remetric
```

Prefer containers? A multi-arch image is published as
`ghcr.io/remetric-dev/remetric:latest` (`linux/amd64`, `linux/arm64`).

Expand Down