Skip to content

Commit

Permalink
Merge branch 'main' into chore/go-version
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome authored Dec 4, 2023
2 parents b1f5afe + 2dcec19 commit 7db97bb
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,18 @@ jobs:
uses: sigstore/cosign-installer@1fc5bd396d372bee37d608f955b336615edf79c8 # v3.2.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: Login to Snapcraft
run: snapcraft login --with <(echo "${{ secrets.SNAPCRAFT_LOGIN }}")
if: github.ref_type == 'tag'

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0
with:
Expand Down
20 changes: 19 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ sboms:
- "${artifact}.spdx.json"

brews:
- tap:
- repository:
owner: nginxinc
name: homebrew-tap
token: '{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}'
Expand Down Expand Up @@ -82,3 +82,21 @@ milestones:

snapshot:
name_template: 'edge'

snapcrafts:
- name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
title: NGINX Prometheus Exporter
summary: NGINX Prometheus Exporter for NGINX and NGINX Plus
description: |
NGINX Prometheus exporter fetches the metrics from NGINX or NGINX Plus,
converts the metrics into appropriate Prometheus metrics types and finally exposes
them via an HTTP server to be collected by Prometheus.
grade: stable
confinement: strict
publish: true
license: 'Apache-2.0'
apps:
nginx-prometheus-exporter:
command: nginx-prometheus-exporter
plugs: ["network", "network-bind"]
disable: "{{ if .IsSnapshot }}true{{ end }}"

0 comments on commit 7db97bb

Please sign in to comment.