Skip to content

Commit 1bbe7d3

Browse files
authored
Merge pull request #178 from thockin/master
Fix multi-platform build in Makefile
2 parents 78d0de2 + 42e6d69 commit 1bbe7d3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Makefile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,13 @@ push-name:
147147
@echo "pushed: $(IMAGE):$(TAG)"
148148

149149
# This depends on github.com/estesp/manifest-tool in $PATH.
150-
manifest-list: push
151-
manifest-tool \
152-
--username=oauth2accesstoken \
153-
--password=$$(gcloud auth print-access-token) \
154-
push from-args \
155-
--platforms "$(ALL_PLATFORMS)" \
150+
manifest-list: all-push
151+
platforms=$$(echo $(ALL_PLATFORMS) | sed 's/ /,/g'); \
152+
manifest-tool \
153+
--username=oauth2accesstoken \
154+
--password=$$(gcloud auth print-access-token) \
155+
push from-args \
156+
--platforms "$$platforms" \
156157
--template $(REGISTRY)/$(BIN):$(VERSION)__OS_ARCH \
157158
--target $(REGISTRY)/$(BIN):$(VERSION)
158159

0 commit comments

Comments
 (0)