Don't add docker.io prefix to ECR images

This commit is contained in:
Philipp Trulson 2022-08-08 17:59:52 +02:00 committed by Philipp Trulson
parent 9e8327fcde
commit 1c9fea5b7c
No known key found for this signature in database
GPG key ID: 86BE2D4ACF8F1074
3 changed files with 3 additions and 2 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -83,6 +83,7 @@ export function getFullDockerImageName(image: string): string {
case 1:
return `${DOCKER_IO_NAMESPACED}/${image}`;
case 2:
if (image.includes("amazonaws.com")) return image;
return `${DOCKER_IO}/${image}`;
default:
return image;