2018-10-02 17:03:32 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
. $(dirname $0)/util
|
2020-11-23 18:27:49 +00:00
|
|
|
set -e
|
2018-10-02 17:03:32 +00:00
|
|
|
|
2021-12-20 21:39:21 +00:00
|
|
|
: ${PLATFORMS=}
|
|
|
|
|
|
|
|
platformFlag=""
|
|
|
|
if [ -n "$PLATFORMS" ]; then
|
|
|
|
platformFlag="--platform=$PLATFORMS"
|
|
|
|
fi
|
2018-10-02 17:03:32 +00:00
|
|
|
|
2020-11-23 18:27:49 +00:00
|
|
|
if [ -n "$RUNC_PLATFORMS" ]; then
|
2021-08-03 06:44:50 +00:00
|
|
|
buildxCmd build $cacheFromFlags $cacheToFlags \
|
2020-11-23 18:27:49 +00:00
|
|
|
--target "binaries-linux-helper" \
|
|
|
|
--platform "$RUNC_PLATFORMS" \
|
|
|
|
$currentcontext
|
|
|
|
fi
|
2020-01-31 04:21:40 +00:00
|
|
|
|
2021-12-20 21:39:21 +00:00
|
|
|
buildxCmd build $platformFlag $cacheFromFlags \
|
2020-11-23 18:27:49 +00:00
|
|
|
$currentcontext
|