Skip to content

Commit

Permalink
Merge pull request kubernetes-csi#89 from pohly/cloud-build-binfmt
Browse files Browse the repository at this point in the history
cloud build: initialize support for running commands in Dockerfile
  • Loading branch information
k8s-ci-robot authored Jun 8, 2020
2 parents be902f4 + db0c2a7 commit c5fd961
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions prow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1198,6 +1198,12 @@ gcr_cloud_build () {
# Required for "docker buildx build --push".
gcloud auth configure-docker

if find . -name Dockerfile | grep -v ^./vendor | xargs --no-run-if-empty cat | grep -q ^RUN; then
# Needed for "RUN" steps on non-linux/amd64 platforms.
# See https://github.com/multiarch/qemu-user-static#getting-started
(set -x; docker run --rm --privileged multiarch/qemu-user-static --reset -p yes)
fi

# Extract tag-n-hash value from GIT_TAG (form vYYYYMMDD-tag-n-hash) for REV value.
REV=v$(echo "$GIT_TAG" | cut -f3- -d 'v')

Expand Down

0 comments on commit c5fd961

Please sign in to comment.