]> git.baikalelectronics.ru Git - uboot.git/commitdiff
CI: Allow a mirror to be specified for Docker Hub
authorPeter Hoyes <Peter.Hoyes@arm.com>
Fri, 10 Mar 2023 09:53:03 +0000 (09:53 +0000)
committerTom Rini <trini@konsulko.com>
Wed, 22 Mar 2023 01:04:09 +0000 (21:04 -0400)
To conserve bandwidth and potentially avoid rate limits, allow a local
mirror of Docker Hub to be specified globally. The default value is
unchanged.

Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
.gitlab-ci.yml

index d2103d28b05959ca98e3461e018aa34a428f3a47..5431bf6011a643f83aae4318d1f683eaa77cee87 100644 (file)
@@ -2,6 +2,7 @@
 
 variables:
   DEFAULT_TAG: ""
+  MIRROR_DOCKER: docker.io
 
 default:
   tags:
@@ -9,7 +10,7 @@ default:
 
 # Grab our configured image.  The source for this is found
 # in the u-boot tree at tools/docker/Dockerfile
-image: trini/u-boot-gitlab-ci-runner:jammy-20230308-21Mar2023
+image: ${MIRROR_DOCKER}/trini/u-boot-gitlab-ci-runner:jammy-20230308-21Mar2023
 
 # We run some tests in different order, to catch some failures quicker.
 stages: