Skip to content

Commit

Permalink
publish/distribute consul-alerts as a compressed .tgz (#244)
Browse files Browse the repository at this point in the history
this allow nomad to use go-getter to download and run consul-alerts. ATM nomad is unable to unarchive the `.tar` distribution.
  • Loading branch information
ketzacoatl authored and fusiondog committed Feb 1, 2019
1 parent 0fd7f10 commit 72c14e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}
@gh-release create AcalephStorage/consul-alerts ${VERSION}

0 comments on commit 72c14e6

Please sign in to comment.