diff mbox series

[2/2] CI: Allow a mirror to be specified for Docker Hub

Message ID 20230310095303.671951-3-peter.hoyes@arm.com
State Accepted
Delegated to: Tom Rini
Headers show
Series CI configuration improvements | expand

Commit Message

Peter Hoyes March 10, 2023, 9:53 a.m. UTC
From: Peter Hoyes <Peter.Hoyes@arm.com>

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>
---
 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Simon Glass March 10, 2023, 8:49 p.m. UTC | #1
On Fri, 10 Mar 2023 at 01:55, Peter Hoyes <peter.hoyes@arm.com> wrote:
>
> From: Peter Hoyes <Peter.Hoyes@arm.com>
>
> 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>
> ---
>  .gitlab-ci.yml | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
Tom Rini March 17, 2023, 4:43 p.m. UTC | #2
On Fri, Mar 10, 2023 at 09:53:03AM +0000, Peter Hoyes wrote:

> From: Peter Hoyes <Peter.Hoyes@arm.com>
> 
> 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>

Oh neat. What we have the source.denx.de runners configured to have a
local registry mirror.

Reviewed-by: Tom Rini <trini@konsulko.com>
Tom Rini March 22, 2023, 2:37 p.m. UTC | #3
On Fri, Mar 10, 2023 at 09:53:03AM +0000, Peter Hoyes wrote:

> From: Peter Hoyes <Peter.Hoyes@arm.com>
> 
> 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>

Applied to u-boot/next, thanks!
diff mbox series

Patch

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d54694e016..f6bcd30124 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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-20230126-10Feb2023
+image: ${MIRROR_DOCKER}/trini/u-boot-gitlab-ci-runner:jammy-20230126-10Feb2023
 
 # We run some tests in different order, to catch some failures quicker.
 stages: