gateway: allow digest to be optional
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>docker-18.09
parent
cfe4e19158
commit
e5449521f5
|
@ -103,9 +103,11 @@ func (gf *gatewayFrontend) Solve(ctx context.Context, llbBridge frontend.Fronten
|
|||
return nil, nil, err
|
||||
}
|
||||
|
||||
sourceRef, err = reference.WithDigest(sourceRef, dgst)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
if dgst != "" {
|
||||
sourceRef, err = reference.WithDigest(sourceRef, dgst)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
}
|
||||
|
||||
src := llb.Image(sourceRef.String())
|
||||
|
|
Loading…
Reference in New Issue