From 4b170f978c53a65143e15f111d00fcdeeb8ae013 Mon Sep 17 00:00:00 2001 From: ketzacoatl Date: Thu, 13 Dec 2018 10:18:20 -0500 Subject: [PATCH] publish/distribute consul-alerts as a compressed .tgz this allow nomad to use go-getter to download and run consul-alerts. ATM nomad is unable to unarchive the `.tar` distribution. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 34f6958f..78c24233 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ build-all: test package: build-all @echo "--> Packaging application" @for arch in ${BUILD_ARCHS}; do \ - tar cf build/tar/${APP_NAME}-${VERSION}-$${arch}.tar -C build/bin/$${arch}/${VERSION} ${APP_NAME} ; \ + tar czf build/tar/${APP_NAME}-${VERSION}-$${arch}.tgz -C build/bin/$${arch}/${VERSION} ${APP_NAME} ; \ done release: package @@ -51,11 +51,11 @@ ifeq ($(VERSION) , latest) endif @echo "--> Releasing version: ${VERSION}" @for arch in ${BUILD_ARCHS}; do \ - curl -s -T "build/tar/${APP_NAME}-${VERSION}-$${arch}.tar" -u "${ACCESS_KEY}" "https://api.bintray.com/content/darkcrux/generic/${APP_NAME}/${VERSION}/${APP_NAME}-${VERSION}-$${arch}.tar"; \ + curl -s -T "build/tar/${APP_NAME}-${VERSION}-$${arch}.tgz" -u "${ACCESS_KEY}" "https://api.bintray.com/content/darkcrux/generic/${APP_NAME}/${VERSION}/${APP_NAME}-${VERSION}-$${arch}.tgz"; \ echo "... $${arch}"; \ done @echo "--> Publishing version ${VERSION}" @curl -s -X POST -u ${ACCESS_KEY} https://api.bintray.com/content/darkcrux/generic/${APP_NAME}/${VERSION}/publish @echo @echo "Github Release" - @gh-release create AcalephStorage/consul-alerts ${VERSION} \ No newline at end of file + @gh-release create AcalephStorage/consul-alerts ${VERSION}