Skip to content

Commit 632b19c

Browse files
authored
Add Homebrew tap (#236)
1 parent 3e37f59 commit 632b19c

File tree

4 files changed

+30
-2
lines changed

4 files changed

+30
-2
lines changed

.github/release-drafter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ template: |
7070
7171
- Use the $RESOLVED_VERSION image from our [DockerHub](https://hub.docker.com/r/nginx/nginx-prometheus-exporter/tags?page=1&ordering=last_updated&name=$RESOLVED_VERSION), [GitHub Container](https://github.com/nginxinc/nginx-prometheus-exporter/pkgs/container/nginx-prometheus-exporter) or [Amazon ECR Public Gallery](https://gallery.ecr.aws/nginx/nginx-prometheus-exporter)
7272
- Download the latest binaries from [GitHub releases page](https://github.com/nginxinc/nginx-prometheus-exporter/releases/tag/v$RESOLVED_VERSION).
73+
- Update to the latest version with `brew upgrade nginx-prometheus-exporter`.
7374
7475
## Compatibility
7576

.goreleaser.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,16 @@ checksum:
3333
name_template: 'sha256sums.txt'
3434
changelog:
3535
skip: true
36+
brews:
37+
- tap:
38+
owner: nginxinc
39+
name: homebrew-tap
40+
folder: Formula
41+
homepage: https://www.nginx.com/
42+
description: NGINX Prometheus Exporter for NGINX and NGINX Plus
43+
license: Apache-2.0
44+
install: |
45+
bin.install "nginx-prometheus-exporter"
46+
commit_author:
47+
name: nginx-bot
48+

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ nginx-prometheus-exporter:
1717
.PHONY: build-goreleaser
1818
build-goreleaser: ## Build all binaries using GoReleaser
1919
@goreleaser -v || (code=$$?; printf "\033[0;31mError\033[0m: there was a problem with GoReleaser. Follow the docs to install it https://goreleaser.com/install\n"; exit $$code)
20-
GOPATH=$(shell go env GOPATH) goreleaser build --rm-dist --debug --snapshot
20+
GOPATH=$(shell go env GOPATH) goreleaser build --rm-dist --snapshot
2121

2222
.PHONY: lint
2323
lint:

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,24 @@ The exporter logs errors to the standard output. When using Docker, if the expor
253253
254254
## Releases
255255
256-
For each release, we publish the corresponding Docker image on [DockerHub](https://hub.docker.com/r/nginx/nginx-prometheus-exporter/), [GitHub Container](https://github.com/nginxinc/nginx-prometheus-exporter/pkgs/container/nginx-prometheus-exporter) and [Amazon ECR Public Gallery](https://gallery.ecr.aws/nginx/nginx-prometheus-exporter). We publish the binaries on the GitHub [releases page](https://github.com/nginxinc/nginx-prometheus-exporter/releases).
256+
### Docker images
257+
We publish the Docker image on [DockerHub](https://hub.docker.com/r/nginx/nginx-prometheus-exporter/), [GitHub Container](https://github.com/nginxinc/nginx-prometheus-exporter/pkgs/container/nginx-prometheus-exporter) and [Amazon ECR Public Gallery](https://gallery.ecr.aws/nginx/nginx-prometheus-exporter).
257258
258259
As an alternative, you can choose the *edge* version built from the [latest commit](https://github.com/nginxinc/nginx-prometheus-exporter/commits/master) from the master branch. The edge version is useful for experimenting with new features that are not yet published in a stable release.
259260
261+
### Binaries
262+
We publish the binaries for multiple Operating Systems and architectures on the GitHub [releases page](https://github.com/nginxinc/nginx-prometheus-exporter/releases).
263+
264+
### Homebrew
265+
You can add the NGINX homebrew tap with
266+
```
267+
$ brew tap nginxinc/tap
268+
```
269+
and then install the formula with
270+
```
271+
$ brew install nginx-prometheus-exporter
272+
```
273+
260274
## Building the Exporter
261275
262276
You can build the exporter using the provided Makefile. Before building the exporter, make sure the following software is installed on your machine:

0 commit comments

Comments
 (0)