Skip to content

Commit

Permalink
Added insecure registry to the runImage in the rebaser
Browse files Browse the repository at this point in the history
Signed-off-by: Domenico Luciani <[email protected]>
  • Loading branch information
Domenico Luciani committed Sep 14, 2023
1 parent ef27044 commit 2b1e40d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/lifecycle/rebaser.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,13 @@ func (r *rebaseCmd) Exec() error {
local.FromBaseImage(r.RunImageRef),
)
} else {
var opts []remote.ImageOption
opts = append(opts, append(image.GetInsecureOptions(r.InsecureRegistries, r.RunImageRef), remote.FromBaseImage(r.RunImageRef))...)

newBaseImage, err = remote.NewImage(
r.RunImageRef,
r.keychain,
remote.FromBaseImage(r.RunImageRef),
opts...,
)
}
if err != nil || !newBaseImage.Found() {
Expand Down

0 comments on commit 2b1e40d

Please sign in to comment.