Skip to content

Commit

Permalink
ci: Increase timeout to 120
Browse files Browse the repository at this point in the history
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
  • Loading branch information
mudler committed Sep 23, 2021
1 parent c05bd49 commit 3c3bbd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/google/go-containerregistry/pkg/crane"
)

const DefaultRetries = 10
const DefaultRetries = 120

type opData struct {
FinalRepo string
Expand All @@ -31,7 +31,7 @@ func retryDownload(img, dest string, t int) error {
return err
}
fmt.Printf("failed downloading '%s', retrying..\n", img)
time.Sleep(time.Duration(t) * time.Second)
time.Sleep(time.Duration(DefaultRetries-t+1) * time.Second)
return retryDownload(img, dest, t-1)
}
return nil
Expand All @@ -44,7 +44,7 @@ func retryList(image string, t int) ([]string, error) {
return tags, err
}
fmt.Printf("failed listing tags for '%s', retrying..\n", image)
time.Sleep(time.Duration(t) * time.Second)
time.Sleep(time.Duration(DefaultRetries-t+1) * time.Second)
return retryList(image, t-1)
}

Expand Down

0 comments on commit 3c3bbd3

Please sign in to comment.