Debian release action

This commit is contained in:
Ben Johnson
2021-01-21 14:34:42 -07:00
parent 94411923a7
commit 9c4de6c520
4 changed files with 25 additions and 10 deletions

View File

@@ -7,8 +7,8 @@ dist:
tar -cz -f dist/litestream-linux-amd64.tar.gz -C dist litestream
deb: dist
ifndef VERSION
$(error VERSION is undefined)
ifndef LITESTREAM_VERSION
$(error LITESTREAM_VERSION is undefined)
endif
cat etc/nfpm.yml | envsubst > dist/nfpm.yml
nfpm pkg --config dist/nfpm.yml --packager deb --target dist/litestream.deb