diff --git a/.cloudbuild.sh b/.cloudbuild.sh deleted file mode 120000 index 94226bc60..000000000 --- a/.cloudbuild.sh +++ /dev/null @@ -1 +0,0 @@ -release-tools/cloudbuild.sh \ No newline at end of file diff --git a/.cloudbuild.sh b/.cloudbuild.sh new file mode 100755 index 000000000..e8cb85c81 --- /dev/null +++ b/.cloudbuild.sh @@ -0,0 +1,11 @@ +#! /bin/bash + +# shellcheck disable=SC1091 +. release-tools/prow.sh + +if find . -name Dockerfile | grep -v ^./vendor | xargs --no-run-if-empty cat | grep -q ^RUN; then + # Needed for "RUN apk" on non linux/amd64 platforms. + (set -x; docker run --rm --privileged multiarch/qemu-user-static --reset -p yes) +fi + +gcr_cloud_build