Skip to content

Commit 462cbdc

Browse files
authored
Merge pull request #183 from pohly/prow-update-master
master: update release-tools
2 parents 5915b62 + 5126fbe commit 462cbdc

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

.cloudbuild.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

.cloudbuild.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
release-tools/cloudbuild.sh

release-tools/prow.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,6 +1198,12 @@ gcr_cloud_build () {
11981198
# Required for "docker buildx build --push".
11991199
gcloud auth configure-docker
12001200

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+
12011207
# Extract tag-n-hash value from GIT_TAG (form vYYYYMMDD-tag-n-hash) for REV value.
12021208
REV=v$(echo "$GIT_TAG" | cut -f3- -d 'v')
12031209

0 commit comments

Comments
 (0)