Skip to content

Commit 5915b62

Browse files
authored
Merge pull request #182 from pohly/cloud-build-binfmt
cloud build: initialize support for running commands in Dockerfile
2 parents a9cee79 + 19e36ae commit 5915b62

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.cloudbuild.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

.cloudbuild.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#! /bin/bash
2+
3+
# shellcheck disable=SC1091
4+
. release-tools/prow.sh
5+
6+
if find . -name Dockerfile | grep -v ^./vendor | xargs --no-run-if-empty cat | grep -q ^RUN; then
7+
# Needed for "RUN apk" on non linux/amd64 platforms.
8+
(set -x; docker run --rm --privileged multiarch/qemu-user-static --reset -p yes)
9+
fi
10+
11+
gcr_cloud_build

0 commit comments

Comments
 (0)