19 lines
414 B
Text
19 lines
414 B
Text
|
#!/bin/bash
|
||
|
set -e
|
||
|
|
||
|
CROSSPLATFORMS="linux/amd64 linux/386 linux/arm"
|
||
|
BUILDTAGS+=" exclude_graphdriver_devicemapper"
|
||
|
|
||
|
for platform in $CROSSPLATFORMS; do
|
||
|
(
|
||
|
export KEEPDEST=1
|
||
|
export DEST="$DEST/$platform" # bundles/VERSION/cross/GOOS/GOARCH/docker-VERSION
|
||
|
mkdir -p "$DEST"
|
||
|
ABS_DEST="$(cd "$DEST" && pwd -P)"
|
||
|
export GOOS=${platform%/*}
|
||
|
export GOARCH=${platform##*/}
|
||
|
|
||
|
source "${MAKEDIR}/binary"
|
||
|
)
|
||
|
done
|