Add NFPM packaging recipe
All checks were successful
Cadoles/postgres-backup/pipeline/head This commit looks good
Cadoles/postgres-backup/pipeline/pr-master This commit looks good

This commit is contained in:
2022-10-31 09:51:47 -06:00
parent 174ebb74c7
commit 9f5fb86f90
7 changed files with 129 additions and 0 deletions

12
Makefile Normal file
View File

@ -0,0 +1,12 @@
PACKAGE_VERSION ?= $(shell git describe --always | rev | cut -d '/' -f 1 | rev)
NFPM_PACKAGER ?= deb
package: dist
PACKAGE_VERSION=$(PACKAGE_VERSION) \
nfpm package \
--config nfpm.yml \
--target ./dist \
--packager $(NFPM_PACKAGER)
dist:
mkdir -p dist