Currently there isn't any option to specify the type of image when building an image in build and push to docker registry/ECR steps. It would benefit if there is some sort of flag to be passed in Kaniko from Build and push to ECR step that would specify the image manifest type as OCI or docker v2. And depending on the input from the user, the image should be built with the respective type.
Currently certain services mandate OCI images (Sagemaker for example) and the current workaround is to use skopeo to change the image type after they are pushed to ECR.
Created by gowri.girish
·