You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Additional parameters are needed when pushing to a local registry,
109
+
# see https://github.com/docker/buildx/issues/94.
110
+
# However, that then runs into https://github.com/docker/cli/issues/2396.
111
+
#
112
+
# What works for local testing is:
113
+
# make push-multiarch PULL_BASE_REF=master REGISTRY_NAME=<your account on dockerhub.io> BUILD_PLATFORMS="linux amd64; windows amd64 .exe; linux ppc64le -ppc64le; linux s390x -s390x"
114
+
DOCKER_BUILDX_CREATE_ARGS ?=
115
+
116
+
# This target builds a multiarch image for one command using Moby BuildKit builder toolkit.
117
+
# Docker Buildx is included in Docker 19.03.
118
+
#
119
+
# ./cmd/<command>/Dockerfile[.Windows] is used if found, otherwise Dockerfile[.Windows].
120
+
# It is currently optional: if no such file exists, Windows images are not included,
121
+
# even when Windows is listed in BUILD_PLATFORMS. That way, projects can test that
122
+
# Windows binaries can be built before adding a Dockerfile for it.
123
+
#
124
+
# BUILD_PLATFORMS determines which individual images are included in the multiarch image.
125
+
# PULL_BASE_REF must be set to 'master', 'release-x.y', or a tag name, and determines
Copy file name to clipboardExpand all lines: release-tools/prow.sh
+34-12Lines changed: 34 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -85,6 +85,8 @@ get_versioned_variable () {
85
85
echo"$value"
86
86
}
87
87
88
+
configvar CSI_PROW_BUILD_PLATFORMS "linux amd64; windows amd64 .exe; linux ppc64le -ppc64le; linux s390x -s390x""Go target platforms (= GOOS + GOARCH) and file suffix of the resulting binaries"
89
+
88
90
# If we have a vendor directory, then use it. We must be careful to only
89
91
# use this for "make" invocations inside the project's repo itself because
90
92
# setting it globally can break other go usages (like "go get <some command>"
run_with_go "${CSI_PROW_GO_VERSION_BUILD}" make all "GOFLAGS_VENDOR=${GOFLAGS_VENDOR}"|| die "'make all' failed"
1031
+
run_with_go "${CSI_PROW_GO_VERSION_BUILD}" make all "GOFLAGS_VENDOR=${GOFLAGS_VENDOR}""BUILD_PLATFORMS=${CSI_PROW_BUILD_PLATFORMS}"|| die "'make all' failed"
1030
1032
# We don't want test failures to prevent E2E testing below, because the failure
1031
1033
# might have been minor or unavoidable, for example when experimenting with
1032
1034
# changes in "release-tools" in a PR (that fails the "is release-tools unmodified"
0 commit comments