Fix multi-platform build in Makefile

This commit is contained in:
Tim Hockin 2019-07-26 14:04:00 -07:00
parent 78d0de2f52
commit 42e6d691fa
1 changed files with 7 additions and 6 deletions

View File

@ -147,12 +147,13 @@ push-name:
@echo "pushed: $(IMAGE):$(TAG)"
# This depends on github.com/estesp/manifest-tool in $PATH.
manifest-list: push
manifest-list: all-push
platforms=$$(echo $(ALL_PLATFORMS) | sed 's/ /,/g'); \
manifest-tool \
--username=oauth2accesstoken \
--password=$$(gcloud auth print-access-token) \
push from-args \
--platforms "$(ALL_PLATFORMS)" \
--platforms "$$platforms" \
--template $(REGISTRY)/$(BIN):$(VERSION)__OS_ARCH \
--target $(REGISTRY)/$(BIN):$(VERSION)