File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,18 @@ jobs:
150150 uses : sigstore/cosign-installer@1fc5bd396d372bee37d608f955b336615edf79c8 # v3.2.0
151151 if : github.ref_type == 'tag'
152152
153+ - name : Setup Snapcraft
154+ run : |
155+ sudo apt-get update
156+ sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft
157+ mkdir -p $HOME/.cache/snapcraft/download
158+ mkdir -p $HOME/.cache/snapcraft/stage-packages
159+ if : github.ref_type == 'tag'
160+
161+ - name : Login to Snapcraft
162+ run : snapcraft login --with <(echo "${{ secrets.SNAPCRAFT_LOGIN }}")
163+ if : github.ref_type == 'tag'
164+
153165 - name : Run GoReleaser
154166 uses : goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0
155167 with :
Original file line number Diff line number Diff line change @@ -82,3 +82,21 @@ milestones:
8282
8383snapshot :
8484 name_template : ' edge'
85+
86+ snapcrafts :
87+ - name_template : ' {{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
88+ title : NGINX Prometheus Exporter
89+ summary : NGINX Prometheus Exporter for NGINX and NGINX Plus
90+ description : |
91+ NGINX Prometheus exporter fetches the metrics from NGINX or NGINX Plus,
92+ converts the metrics into appropriate Prometheus metrics types and finally exposes
93+ them via an HTTP server to be collected by Prometheus.
94+ grade : stable
95+ confinement : strict
96+ publish : true
97+ license : ' Apache-2.0'
98+ apps :
99+ nginx-prometheus-exporter :
100+ command : nginx-prometheus-exporter
101+ plugs : ["network", "network-bind"]
102+ disable : " {{ if .IsSnapshot }}true{{ end }}"
You can’t perform that action at this time.
0 commit comments