2017-05-25 23:26:11 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2019-01-26 06:29:13 +00:00
|
|
|
. $(dirname $0)/util
|
2020-11-22 00:34:31 +00:00
|
|
|
set -eu
|
2017-05-25 23:26:11 +00:00
|
|
|
|
2020-11-22 00:34:31 +00:00
|
|
|
output=$(mktemp -d -t buildx-output.XXXXXXXXXX)
|
2019-01-26 06:29:13 +00:00
|
|
|
|
2020-11-22 00:34:31 +00:00
|
|
|
buildxCmd build \
|
|
|
|
--target "update" \
|
|
|
|
--output "type=local,dest=$output" \
|
|
|
|
--file "./hack/dockerfiles/vendor.Dockerfile" \
|
|
|
|
.
|
2019-01-26 06:29:13 +00:00
|
|
|
|
2020-11-22 00:34:31 +00:00
|
|
|
rm -rf ./vendor
|
|
|
|
cp -R "$output"/out/* .
|
|
|
|
rm -rf $output
|