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
Copy file name to clipboardExpand all lines: build.make
+63Lines changed: 63 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -105,6 +105,69 @@ build: $(CMDS:%=build-%)
105
105
container: $(CMDS:%=container-%)
106
106
push: $(CMDS:%=push-%)
107
107
108
+
# 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
+
# BUILD_PLATFORMS determines which individual images are included in the multiarch image.
121
+
# PULL_BASE_REF must be set to 'master', 'release-x.y', or a tag name, and determines
# because binaries will get built for different architectures and then
11
+
# get copied from the built host into the container image
12
+
#
13
+
# See https://github.com/kubernetes/test-infra/blob/master/config/jobs/image-pushing/README.md
14
+
# for more details on image pushing process in Kubernetes.
15
+
16
+
# This must be specified in seconds. If omitted, defaults to 600s (10 mins).
17
+
timeout: 1200s
18
+
# This prevents errors if you don't use both _GIT_TAG and _PULL_BASE_REF,
19
+
# or any new substitutions added in the future.
20
+
options:
21
+
substitution_option: ALLOW_LOOSE
22
+
steps:
23
+
# The image must contain bash and curl. Ideally it should also contain
24
+
# the desired version of Go (currently defined in release-tools/travis.yml),
25
+
# but that just speeds up the build and is not required.
0 commit comments