Skip to content

Commit 6446f45

Browse files
Merge pull request #1 from simonswine/20230921_integrate-nfpm-into-goreleaser
Integrate nfpm into goreleaser pipeline
2 parents 074aac7 + 49dffaa commit 6446f45

File tree

4 files changed

+20
-83
lines changed

4 files changed

+20
-83
lines changed

.goreleaser.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,25 @@ docker_manifests:
142142
- grafana/{{ .ProjectName }}:latest-arm64v8
143143
- grafana/{{ .ProjectName }}:latest-armv6
144144
- grafana/{{ .ProjectName }}:latest-armv7
145+
nfpms:
146+
- id: pyroscope
147+
formats:
148+
- deb
149+
- rpm
150+
section: default
151+
maintainer: Grafana Labs <[email protected]>
152+
vendor: Grafana Labs Inc
153+
homepage: https://grafana.com/pyroscope
154+
license: AGPL-3.0
155+
contents:
156+
- src: ./tools/packaging/pyroscope.service
157+
dst: /etc/systemd/system/pyroscope.service
158+
- src: ./cmd/pyroscope/pyroscope.yaml
159+
dst: /etc/pyroscope/config.yml
160+
type: config|noreplace
161+
scripts:
162+
postinstall: ./tools/packaging/postinstall.sh
163+
145164
archives:
146165
- id: pyroscope
147166
builds:

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ $(BIN)/updater: Makefile
312312

313313
$(BIN)/goreleaser: Makefile go.mod
314314
@mkdir -p $(@D)
315-
GOBIN=$(abspath $(@D)) $(GO) install github.com/goreleaser/goreleaser@v1.14.1
315+
GOBIN=$(abspath $(@D)) $(GO) install github.com/goreleaser/goreleaser@v1.20.0
316316

317317
$(BIN)/gotestsum: Makefile go.mod
318318
@mkdir -p $(@D)
@@ -421,6 +421,3 @@ docs/%:
421421
.PHONY: run
422422
run: ## Run the pyroscope binary (pass parameters with 'make run PARAMS=-myparam')
423423
./pyroscope $(PARAMS)
424-
425-
packages: build
426-
@tools/packaging/nfpm.sh

tools/packaging/nfpm.jsonnet

Lines changed: 0 additions & 52 deletions
This file was deleted.

tools/packaging/nfpm.sh

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)