From 6b5d5d6746212de2ad0f1b20a21ff05d35506d4d Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Tue, 27 Feb 2024 12:57:26 +0100 Subject: [PATCH] cache(gha): increase default timeout to 10m Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- README.md | 4 ++-- cache/remotecache/gha/gha.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index aafe2ce63e21..8e916cb96a4a 100644 --- a/README.md +++ b/README.md @@ -506,12 +506,12 @@ in your workflow to expose the runtime. * `max`: export all the layers of all intermediate steps * `scope=`: which scope cache object belongs to (default `buildkit`) * `ignore-error=`: specify if error is ignored in case cache export fails (default: `false`) -* `timeout=`: sets the timeout duration for cache export (default: `5m`) +* `timeout=`: sets the timeout duration for cache export (default: `10m`) `--import-cache` options: * `type=gha` * `scope=`: which scope cache object belongs to (default `buildkit`) -* `timeout=`: sets the timeout duration for cache import (default: `5m`) +* `timeout=`: sets the timeout duration for cache import (default: `10m`) #### S3 cache (experimental) diff --git a/cache/remotecache/gha/gha.go b/cache/remotecache/gha/gha.go index 47f1a2db7985..abc2b30aa442 100644 --- a/cache/remotecache/gha/gha.go +++ b/cache/remotecache/gha/gha.go @@ -39,7 +39,7 @@ const ( attrURL = "url" version = "1" - defaultTimeout = 5 * time.Minute + defaultTimeout = 10 * time.Minute ) type Config struct {