mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
14 lines
356 B
Text
14 lines
356 B
Text
|
#!/bin/bash
|
||
|
|
||
|
DEST=$1
|
||
|
|
||
|
for platform in $DOCKER_CROSSPLATFORMS; do
|
||
|
(
|
||
|
export GOOS=${platform%/*}
|
||
|
export GOARCH=${platform##*/}
|
||
|
export VERSION="$GOOS-$GOARCH-$VERSION" # for a nice filename
|
||
|
export LDFLAGS_STATIC="" # we just need a simple client for these platforms (TODO this might change someday)
|
||
|
source "$(dirname "$BASH_SOURCE")/binary"
|
||
|
)
|
||
|
done
|