build: add .deb and .rpm output for the build

This uses https://github.com/goreleaser/nfpm to create the .deb and
.rpm packages from the standard build output.
This commit is contained in:
Nick Craig-Wood
2018-03-06 12:37:44 +00:00
parent d41017a277
commit 85e0b87c99
7 changed files with 126 additions and 33 deletions
+1
View File
@@ -136,6 +136,7 @@ endif
@echo Beta release ready at $(BETA_URL)
travis_beta:
go run bin/get-github-release.go -extract nfpm goreleaser/nfpm 'nfpm_.*_Linux_x86_64.tar.gz'
git log $(LAST_TAG).. > /tmp/git-log.txt
go run bin/cross-compile.go -release beta-latest -git-log /tmp/git-log.txt -exclude "^windows/" -parallel 8 $(BUILDTAGS) $(TAG)β
rclone --config bin/travis.rclone.conf -v copy --exclude '*beta-latest*' build/ memstore:beta-rclone-org/$(TAG)