Skip to content

Commit

Permalink
Update makefile with iceburg publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
samtay committed Jan 3, 2017
1 parent 3337abd commit 206ef35
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,17 @@ _mkrelease: _release_check $(NAMESPACE)
curl -sL -H "Authorization: token $(GH_TOKEN)" -H "Content-Type: text/x-shellscript" --data-binary @"dist/dmc" -X POST $(GH_UPLOAD_URL)/repos/$(GH_PROJECT)/releases/$$id/assets?name=dmc &>/dev/null ; \
)

$(info * publishing to get.iceburg.net/$(NAMESPACE)/latest-$(RELEASE_BRANCH)/)
@( \
set -e ; \
cd $(CURDIR)/dist ; \
for file in * ; do \
echo "# @$(NAMESPACE)_UPDATE_URL=http://get.iceburg.net/$(NAMESPACE)/latest-$(RELEASE_BRANCH)/$$file" >> $$file ; \
done ; \
drclone sync . iceburg_s3:get.iceburg.net/$(NAMESPACE)/latest-$(RELEASE_BRANCH) ; \
)


#
# sanity checks
.PHONY: _release_check _gh_check _wc_check
Expand Down

0 comments on commit 206ef35

Please sign in to comment.