mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 16:54:15 -04:00
release: drop release/ (#2173)
Drop the release/ dir prefix form the uploaded files. Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
@@ -92,23 +92,23 @@ github-push:
|
|||||||
@echo Releasing: $(VERSION)
|
@echo Releasing: $(VERSION)
|
||||||
@$(eval RELEASE:=$(shell curl -s -d '{"tag_name": "v$(VERSION)", "name": "v$(VERSION)"}' "https://api.github.com/repos/$(GITHUB)/$(NAME)/releases?access_token=${GITHUB_ACCESS_TOKEN}" | grep -m 1 '"id"' | tr -cd '[[:digit:]]'))
|
@$(eval RELEASE:=$(shell curl -s -d '{"tag_name": "v$(VERSION)", "name": "v$(VERSION)"}' "https://api.github.com/repos/$(GITHUB)/$(NAME)/releases?access_token=${GITHUB_ACCESS_TOKEN}" | grep -m 1 '"id"' | tr -cd '[[:digit:]]'))
|
||||||
@echo ReleaseID: $(RELEASE)
|
@echo ReleaseID: $(RELEASE)
|
||||||
@for asset in `ls -A release/*tgz`; do \
|
@( cd release; for asset in `ls -A *tgz`; do \
|
||||||
echo $$asset; \
|
echo $$asset; \
|
||||||
curl -o /dev/null -X POST \
|
curl -o /dev/null -X POST \
|
||||||
-H "Content-Type: application/gzip" \
|
-H "Content-Type: application/gzip" \
|
||||||
--data-binary "@$$asset" \
|
--data-binary "@$$asset" \
|
||||||
"https://uploads.github.com/repos/$(GITHUB)/$(NAME)/releases/$(RELEASE)/assets?name=$${asset}&access_token=${GITHUB_ACCESS_TOKEN}" ; \
|
"https://uploads.github.com/repos/$(GITHUB)/$(NAME)/releases/$(RELEASE)/assets?name=$${asset}&access_token=${GITHUB_ACCESS_TOKEN}" ; \
|
||||||
done
|
done )
|
||||||
for asset in `ls -A release/*tgz`; do \
|
@( cd release; for asset in `ls -A *tgz`; do \
|
||||||
sha256sum $$asset > $$asset.sha256; \
|
sha256sum $$asset > $$asset.sha256; \
|
||||||
done
|
done )
|
||||||
@for asset in `ls -A release/*sha256`; do \
|
@( cd release; for asset in `ls -A *sha256`; do \
|
||||||
echo $$asset; \
|
echo $$asset; \
|
||||||
curl -o /dev/null -X POST \
|
curl -o /dev/null -X POST \
|
||||||
-H "Content-Type: text/plain" \
|
-H "Content-Type: text/plain" \
|
||||||
--data-binary "@$$asset" \
|
--data-binary "@$$asset" \
|
||||||
"https://uploads.github.com/repos/$(GITHUB)/$(NAME)/releases/$(RELEASE)/assets?name=$${asset}&access_token=${GITHUB_ACCESS_TOKEN}" ; \
|
"https://uploads.github.com/repos/$(GITHUB)/$(NAME)/releases/$(RELEASE)/assets?name=$${asset}&access_token=${GITHUB_ACCESS_TOKEN}" ; \
|
||||||
done
|
done )
|
||||||
|
|
||||||
.PHONY: docker-build
|
.PHONY: docker-build
|
||||||
docker-build: tar
|
docker-build: tar
|
||||||
|
|||||||
Reference in New Issue
Block a user