You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
589 B
Bash
25 lines
589 B
Bash
#!/usr/bin/env bash
|
|
|
|
. $(dirname $0)/util
|
|
set -e
|
|
|
|
: ${TARGETPLATFORM=linux/amd64,linux/arm/v7,linux/arm64,darwin/amd64,windows/amd64,linux/ppc64le,linux/s390x,linux/riscv64}
|
|
: ${EXPORT_LOCAL=}
|
|
|
|
importCacheFlags=""
|
|
if [ "$GITHUB_ACTIONS" = "true" ]; then
|
|
if [ -n "$cacheRefFrom" ]; then
|
|
importCacheFlags="--cache-from=type=local,src=$cacheRefFrom"
|
|
fi
|
|
fi
|
|
|
|
exportFlag=""
|
|
if [ -n "$EXPORT_LOCAL" ]; then
|
|
exportFlag="--output=type=local,dest=$EXPORT_LOCAL"
|
|
fi
|
|
|
|
buildxCmd build $importCacheFlags $exportFlag \
|
|
--target "binaries" \
|
|
--platform "$TARGETPLATFORM" \
|
|
$currentcontext
|