Skip to content

Commit e7cd203

Browse files
tonistiigizhsj
authored andcommitted
pusher: add missing authentication support for requests
Signed-off-by: Tonis Tiigi <[email protected]> (cherry picked from commit 4dfec7f) Signed-off-by: Shengjing Zhu <[email protected]>
1 parent 00f5ffa commit e7cd203

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

remotes/docker/pusher.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func (p dockerPusher) Push(ctx context.Context, desc ocispec.Descriptor) (conten
136136
//
137137
// for the private repo, we should remove mount-from
138138
// query and send the request again.
139-
resp, err = preq.do(pctx)
139+
resp, err = preq.doWithRetries(pctx, nil)
140140
if err != nil {
141141
return nil, err
142142
}
@@ -235,7 +235,7 @@ func (p dockerPusher) Push(ctx context.Context, desc ocispec.Descriptor) (conten
235235

236236
go func() {
237237
defer close(respC)
238-
resp, err := req.do(ctx)
238+
resp, err := req.doWithRetries(ctx, nil)
239239
if err != nil {
240240
pr.CloseWithError(err)
241241
return

0 commit comments

Comments
 (0)