jenkins: Remove os_arch from file inside zip file artifact
This changes the contents of the zip files, removing the _darwin_amd64 and other bits. Windows builds should still have filenames ending with .exe. Change-Id: I25a582034b59200c1d6034dd2925cdeaf06844e2
This commit is contained in:
parent
149273c63f
commit
7cbd83a399
13
Makefile
13
Makefile
@ -329,7 +329,18 @@ push-images: ## Push Docker images to Docker Hub (jenkins)
|
|||||||
|
|
||||||
.PHONY: binaries-upload
|
.PHONY: binaries-upload
|
||||||
binaries-upload: ## Upload binaries to Google Storage (jenkins)
|
binaries-upload: ## Upload binaries to Google Storage (jenkins)
|
||||||
cd "release/${TAG}"; for f in *; do zip $${f}.zip $${f}; done
|
cd "release/${TAG}"; for f in *; do \
|
||||||
|
c="$${f%%_*}" \
|
||||||
|
&& if [ "$${f##*.}" != "$${f}" ]; then \
|
||||||
|
ln -s "$${f}" "$${f%%_*}.$${f##*.}" \
|
||||||
|
&& zip "$${f}.zip" "$${f%%_*}.$${f##*.}" \
|
||||||
|
&& rm "$${f%%_*}.$${f##*.}" \
|
||||||
|
; else \
|
||||||
|
ln -sf "$${f}" "$${f%%_*}" \
|
||||||
|
&& zip "$${f}.zip" "$${f%%_*}" \
|
||||||
|
&& rm "$${f%%_*}" \
|
||||||
|
; fi \
|
||||||
|
; done
|
||||||
cd "release/${TAG}"; gsutil -m cp -r *.zip "gs://storj-v3-alpha-builds/${TAG}/"
|
cd "release/${TAG}"; gsutil -m cp -r *.zip "gs://storj-v3-alpha-builds/${TAG}/"
|
||||||
|
|
||||||
##@ Clean
|
##@ Clean
|
||||||
|
Loading…
Reference in New Issue
Block a user