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}