diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fdfc189a..42fa4ffb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -119,3 +119,4 @@ jobs: GOPATH: ${{ steps.go.outputs.go_path }} SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_COMMUNITY }} SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }} + NGINX_GITHUB_TOKEN: ${{ secrets.NGINX_PAT }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 2482738d..434fdfd7 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -132,3 +132,16 @@ snapcrafts: command: nginx-asg-sync plugs: ["network", "network-bind"] disable: "{{ if .IsSnapshot }}true{{ end }}" + +brews: + - repository: + owner: nginxinc + name: homebrew-tap + token: "{{ .Env.NGINX_GITHUB_TOKEN }}" + directory: Formula + homepage: https://github.com/nginxinc/nginx-asg-sync + description: NGINX Plus Integration with Cloud Autoscaling + license: "BSD 2-Clause" + commit_author: + name: nginx-bot + email: integrations@nginx.com diff --git a/README.md b/README.md index 65b23292..ecc1c4a8 100644 --- a/README.md +++ b/README.md @@ -29,8 +29,9 @@ the terminated ones. - [Installation](#installation) - [Manual Installation](#manual-installation) - [Snap Installation](#snap-installation) - - [NGINX Plus Configuration](#nginx-plus-configuration) - - [Configuration for Cloud Providers](#configuration-for-cloud-providers) + - [Homebrew Installation](#homebrew-installation) +- [NGINX Plus Configuration](#nginx-plus-configuration) +- [Configuration for Cloud Providers](#configuration-for-cloud-providers) - [Usage](#usage) - [Troubleshooting](#troubleshooting) - [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 sudo snap install nginx-asg-sync ``` -### NGINX Plus Configuration +### Homebrew Installation + +You can add the NGINX homebrew tap with + +```console +brew tap nginxinc/tap +``` + +and then install the formula with + +```console +brew install nginx-asg-sync +``` + +## NGINX Plus Configuration As an example, we configure NGINX Plus to load balance two groups of instances -- backend-group-one and 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 > requests to a terminated instance, make sure the instance goes to the `Terminating:Wait` state for a period greater > than the interval `sync_interval_in_seconds`. -### Configuration for Cloud Providers +## Configuration for Cloud Providers See the example for your cloud provider: [AWS](examples/aws.md), [Azure](examples/azure.md).