mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
buildkite: build images in parallel
This commit is contained in:
@@ -215,13 +215,13 @@ steps:
|
||||
- <<: *common
|
||||
label: ":docker: Images (x86_64)"
|
||||
if: build.env("SKIP_LOADING_IMAGES") == null && build.env("STAGED_BINARIES") == null
|
||||
command: make ARCH=x86_64 load-all-test-images
|
||||
command: make ARCH=x86_64 -j 8 load-all-test-images
|
||||
agents:
|
||||
arch: "amd64"
|
||||
- <<: *common
|
||||
label: ":docker: Images (aarch64)"
|
||||
if: build.env("SKIP_LOADING_IMAGES") == null && build.env("STAGED_BINARIES") == null
|
||||
command: make ARCH=aarch64 load-all-test-images
|
||||
command: make ARCH=aarch64 -j 8 load-all-test-images
|
||||
agents:
|
||||
arch: "arm64"
|
||||
|
||||
|
||||
@@ -23,14 +23,14 @@ steps:
|
||||
label: ":ship: Push all images (x86_64)"
|
||||
if: build.branch == "master" && build.tag == null
|
||||
commands:
|
||||
- make ARCH=x86_64 push-all-images
|
||||
- make -j 8 ARCH=x86_64 push-all-images
|
||||
agents:
|
||||
arch: "amd64"
|
||||
- <<: *common
|
||||
label: ":ship: Push all images (aarch64)"
|
||||
if: build.branch == "master" && build.tag == null
|
||||
commands:
|
||||
- make ARCH=aarch64 push-all-images
|
||||
- make -j 8 ARCH=aarch64 push-all-images
|
||||
agents:
|
||||
arch: "arm64"
|
||||
- <<: *common
|
||||
|
||||
+2
-2
@@ -132,7 +132,7 @@ tag-%: ## Tag a local image.
|
||||
# pull forces the image to be pulled.
|
||||
pull = \
|
||||
$(call header,PULL $(1)) && \
|
||||
docker pull $(DOCKER_PLATFORM_ARGS) $(call remote_image,$(1)):$(call tag,$(1)) >&2 && \
|
||||
docker pull -q $(DOCKER_PLATFORM_ARGS) $(call remote_image,$(1)):$(call tag,$(1)) >&2 && \
|
||||
$(call local_tag,$(1)) && \
|
||||
$(call latest_tag,$(1))
|
||||
pull-%: register-cross ## Force a repull of the image.
|
||||
@@ -167,7 +167,7 @@ load-%: register-cross ## Pull or build an image locally.
|
||||
# already exists) or building manually. Note that this generic rule will match
|
||||
# the fully-expanded remote image tag.
|
||||
push-%: load-% ## Push a given image.
|
||||
@docker image push $(call remote_image,$*):$(call tag,$*) >&2
|
||||
@docker image push -q $(call remote_image,$*):$(call tag,$*) >&2
|
||||
|
||||
# register-cross registers the necessary qemu binaries for cross-compilation.
|
||||
# This may be used by any target that may execute containers that are not the
|
||||
|
||||
Reference in New Issue
Block a user