Skip to content

Commit

Permalink
fix: prevent 404 on ECR during image creation (#100)
Browse files Browse the repository at this point in the history
* feat: introduces no-tags option for inspect

* feat: ignore tags when inspecting
  • Loading branch information
tillt authored Apr 25, 2022
1 parent c91500e commit e000ef7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/create/imagebundle/image_bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ func NewCommand(out output.Output) *cobra.Command {
srcImageManifestList, skopeoStdout, skopeoStderr, err := skopeoRunner.InspectManifest(
context.Background(),
fmt.Sprintf("%s%s", srcSkopeoScheme, srcImageName),
skopeo.NoTags(),
)
if err != nil {
srcSkopeoScheme = "docker-daemon:"
Expand Down
6 changes: 6 additions & 0 deletions skopeo/skopeo.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ func All() SkopeoOption {
}
}

func NoTags() SkopeoOption {
return func() string {
return "--no-tags"
}
}

func IndexOnly() SkopeoOption {
return func() string {
return "--multi-arch=index-only"
Expand Down

0 comments on commit e000ef7

Please sign in to comment.