We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents be902f4 + db0c2a7 commit c5fd961Copy full SHA for c5fd961
prow.sh
@@ -1198,6 +1198,12 @@ gcr_cloud_build () {
1198
# Required for "docker buildx build --push".
1199
gcloud auth configure-docker
1200
1201
+ if find . -name Dockerfile | grep -v ^./vendor | xargs --no-run-if-empty cat | grep -q ^RUN; then
1202
+ # Needed for "RUN" steps on non-linux/amd64 platforms.
1203
+ # See https://github.com/multiarch/qemu-user-static#getting-started
1204
+ (set -x; docker run --rm --privileged multiarch/qemu-user-static --reset -p yes)
1205
+ fi
1206
+
1207
# Extract tag-n-hash value from GIT_TAG (form vYYYYMMDD-tag-n-hash) for REV value.
1208
REV=v$(echo "$GIT_TAG" | cut -f3- -d 'v')
1209
0 commit comments