Skip to content

Commit e170e9d

Browse files
authored
Add config for homebrew (#731)
1 parent a7202a9 commit e170e9d

File tree

3 files changed

+33
-4
lines changed

3 files changed

+33
-4
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,4 @@ jobs:
119119
GOPATH: ${{ steps.go.outputs.go_path }}
120120
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_COMMUNITY }}
121121
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }}
122+
NGINX_GITHUB_TOKEN: ${{ secrets.NGINX_PAT }}

.goreleaser.yml

+13
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,16 @@ snapcrafts:
132132
command: nginx-asg-sync
133133
plugs: ["network", "network-bind"]
134134
disable: "{{ if .IsSnapshot }}true{{ end }}"
135+
136+
brews:
137+
- repository:
138+
owner: nginxinc
139+
name: homebrew-tap
140+
token: "{{ .Env.NGINX_GITHUB_TOKEN }}"
141+
directory: Formula
142+
homepage: https://github.com/nginxinc/nginx-asg-sync
143+
description: NGINX Plus Integration with Cloud Autoscaling
144+
license: "BSD 2-Clause"
145+
commit_author:
146+
name: nginx-bot
147+

README.md

+19-4
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ the terminated ones.
2929
- [Installation](#installation)
3030
- [Manual Installation](#manual-installation)
3131
- [Snap Installation](#snap-installation)
32-
- [NGINX Plus Configuration](#nginx-plus-configuration)
33-
- [Configuration for Cloud Providers](#configuration-for-cloud-providers)
32+
- [Homebrew Installation](#homebrew-installation)
33+
- [NGINX Plus Configuration](#nginx-plus-configuration)
34+
- [Configuration for Cloud Providers](#configuration-for-cloud-providers)
3435
- [Usage](#usage)
3536
- [Troubleshooting](#troubleshooting)
3637
- [Building a Software Package](#building-a-software-package)
@@ -91,7 +92,21 @@ You can install the NGINX Plus Integration with Cloud Autoscaling from the [Snap
9192
sudo snap install nginx-asg-sync
9293
```
9394

94-
### NGINX Plus Configuration
95+
### Homebrew Installation
96+
97+
You can add the NGINX homebrew tap with
98+
99+
```console
100+
brew tap nginxinc/tap
101+
```
102+
103+
and then install the formula with
104+
105+
```console
106+
brew install nginx-asg-sync
107+
```
108+
109+
## NGINX Plus Configuration
95110

96111
As an example, we configure NGINX Plus to load balance two groups of instances -- backend-group-one and
97112
backend-group-two. NGINX Plus routes requests to the appropriate group based on the request URI:
@@ -193,7 +208,7 @@ This also works when an instance is being terminated: the asg-sync will remove t
193208
> requests to a terminated instance, make sure the instance goes to the `Terminating:Wait` state for a period greater
194209
> than the interval `sync_interval_in_seconds`.
195210
196-
### Configuration for Cloud Providers
211+
## Configuration for Cloud Providers
197212

198213
See the example for your cloud provider: [AWS](examples/aws.md), [Azure](examples/azure.md).
199214

0 commit comments

Comments
 (0)