@@ -79,7 +79,7 @@ func (b *backend) Push(ctx context.Context, target string, cfg *config.Push) err
7979 g .Go (func () error {
8080 return retry .Do (func () error {
8181 return pushIfNotExist (ctx , pb , internalpb .NormalizePrompt ("Copying blob" ), src , dst , layer , repo , tag )
82- }, retryOpts ... )
82+ }, append ( defaultRetryOpts , retry . Context ( ctx )) ... )
8383 })
8484 }
8585
@@ -90,7 +90,7 @@ func (b *backend) Push(ctx context.Context, target string, cfg *config.Push) err
9090 // copy the config.
9191 if err := retry .Do (func () error {
9292 return pushIfNotExist (ctx , pb , internalpb .NormalizePrompt ("Copying config" ), src , dst , manifest .Config , repo , tag )
93- }, retryOpts ... ); err != nil {
93+ }, append ( defaultRetryOpts , retry . Context ( ctx )) ... ); err != nil {
9494 return fmt .Errorf ("failed to push config to remote: %w" , err )
9595 }
9696
@@ -102,7 +102,7 @@ func (b *backend) Push(ctx context.Context, target string, cfg *config.Push) err
102102 Digest : godigest .FromBytes (manifestRaw ),
103103 Data : manifestRaw ,
104104 }, repo , tag )
105- }, retryOpts ... ); err != nil {
105+ }, append ( defaultRetryOpts , retry . Context ( ctx )) ... ); err != nil {
106106 return fmt .Errorf ("failed to push manifest to remote: %w" , err )
107107 }
108108
0 commit comments