18 lines
415 B
Bash
Executable File
18 lines
415 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
. $(dirname $0)/util
|
|
set -eu
|
|
|
|
gogo_version=$(awk '$1 == "github.com/gogo/protobuf" { print $2 }' go.mod)
|
|
output=$(mktemp -d -t buildctl-output.XXXXXXXXXX)
|
|
|
|
buildxCmd build \
|
|
--target "update" \
|
|
--build-arg "GOGO_VERSION=$gogo_version" \
|
|
--output "type=local,dest=$output" \
|
|
--file "./hack/dockerfiles/generated-files.Dockerfile" \
|
|
.
|
|
|
|
cp -R "$output/generated-files/" .
|
|
rm -rf $output
|