diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c8bda4b..97d9bf61 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -165,6 +165,12 @@ jobs: mkdir -p $HOME/.cache/snapcraft/stage-packages if: github.ref_type == 'tag' + - name: Install Nix + uses: cachix/install-nix-action@7ac1ec25491415c381d9b62f0657c7a028df52a7 # v24 + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + if: github.ref_type == 'tag' + - name: Run GoReleaser uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0 with: @@ -173,7 +179,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GOPATH: ${{ steps.go.outputs.go_path }} - HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.NGINX_PAT }} + NGINX_GITHUB_TOKEN: ${{ secrets.NGINX_PAT }} SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_COMMUNITY }} SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 33cd5103..4b7c256a 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -58,9 +58,9 @@ brews: - repository: owner: nginxinc name: homebrew-tap - token: '{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}' + token: '{{ .Env.NGINX_GITHUB_TOKEN }}' folder: Formula - homepage: https://www.nginx.com/ + homepage: https://github.com/nginxinc/nginx-prometheus-exporter description: NGINX Prometheus Exporter for NGINX and NGINX Plus license: Apache-2.0 commit_author: @@ -113,3 +113,18 @@ snapcrafts: plugs: ["network", "network-bind"] completer: completions/nginx-prometheus-exporter.bash disable: "{{ if .IsSnapshot }}true{{ end }}" + +nix: + - repository: + owner: nginxinc + name: nur + token: '{{ .Env.NGINX_GITHUB_TOKEN }}' + homepage: https://github.com/nginxinc/nginx-prometheus-exporter + description: NGINX Prometheus Exporter for NGINX and NGINX Plus + license: asl20 + commit_author: + name: nginx-bot + email: integrations@nginx.com + extra_install: |- + installManPage ./manpages/nginx-prometheus-exporter.1.gz + installShellCompletion ./completions/*