2019-03-23 04:29:28 +08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
. $(dirname $0)/util
|
2020-12-08 00:14:35 +08:00
|
|
|
set -eu
|
2019-03-23 04:29:28 +08:00
|
|
|
|
2020-12-08 00:14:35 +08:00
|
|
|
output=$(mktemp -d -t buildx-output.XXXXXXXXXX)
|
2019-03-23 04:29:28 +08:00
|
|
|
|
2020-12-08 00:14:35 +08:00
|
|
|
buildxCmd build \
|
|
|
|
--target "update" \
|
|
|
|
--output "type=local,dest=$output" \
|
|
|
|
--file "./hack/dockerfiles/vendor.Dockerfile" \
|
|
|
|
.
|
2019-03-23 04:29:28 +08:00
|
|
|
|
2020-12-08 00:14:35 +08:00
|
|
|
rm -rf ./vendor
|
|
|
|
cp -R "$output"/out/* .
|
|
|
|
rm -rf $output
|