publish/distribute consul-alerts as a compressed .tgz (#244)
this allow nomad to use go-getter to download and run consul-alerts. ATM nomad is unable to unarchive the `.tar` distribution.
This commit is contained in:
parent
0fd7f10bc3
commit
72c14e6b4a
6
Makefile
6
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}
|
||||
@gh-release create AcalephStorage/consul-alerts ${VERSION}
|
||||
|
|
Loading…
Reference in New Issue