Skip to content

Commit

Permalink
continue on linux image not found
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvdp committed Aug 18, 2023
1 parent 04cbc0b commit 2dac642
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/lambda/sync_images.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ func (svc *ecrClient) copyImageWithCrane(imageName, tag, awsPrefix, ecrImageName

if err := crane.Copy((imageName + ":" + tag), (awsPrefix + "/" + ecrImageName + ":" + tag), opts...); err != nil {
log.Printf("error copying image: %v", err)
if strings.Contains(err.Error(), "no child with platform linux/amd64") {
return nil
}
return err
}

Expand Down

0 comments on commit 2dac642

Please sign in to comment.