Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config to publish Snapcraft packages #474

Merged
merged 3 commits into from
Jan 7, 2024
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
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@ jobs:
uses: sigstore/cosign-installer@9614fae9e5c5eddabb09f90a270fcb487c9f7149 # v3.3.0
if: github.ref_type == 'tag'

- name: Setup Snapcraft
run: |
sudo apt-get update
sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft
mkdir -p $HOME/.cache/snapcraft/download
mkdir -p $HOME/.cache/snapcraft/stage-packages
if: github.ref_type == 'tag'

- name: Build binaries
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0
with:
Expand All @@ -110,3 +118,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOPATH: ${{ steps.go.outputs.go_path }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_COMMUNITY }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }}
15 changes: 15 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,18 @@ milestones:

snapshot:
name_template: 'edge'

snapcrafts:
- summary: NGINX Plus Integration with Cloud Autoscaling
description: |
This package contains software that integrates NGINX Plus
with AWS Auto Scaling groups and Azure Virtual Machine Scale Set
grade: devel
confinement: strict
publish: true
license: 'BSD 2-Clause'
apps:
nginx-asg-sync:
command: nginx-asg-sync
plugs: ["network", "network-bind"]
disable: "{{ if .IsSnapshot }}true{{ end }}"
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ Support for other operating systems or architectures can be added.

## Installation

### Manual Installation

1. Get a software package for your OS:
- For a stable release, download a package from the [releases page](https://github.com/nginxinc/nginx-asg-sync/releases).
- For the latest source code from the main branch, build a software package by following [these
Expand All @@ -77,6 +79,14 @@ Support for other operating systems or architectures can be added.
- For CentOS/RHEL based OSs, run: `sudo rpm -i <package-name>.rpm`
- For Debian based OSs, run: `sudo dpkg -i <package-name>.deb`

### Snap Installation

You can install the NGINX Plus Integration with Cloud Autoscaling from the [Snap Store](https://snapcraft.io/nginx-asg-sync).

```console
sudo snap 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
Expand Down
Loading