Don't add docker.io prefix to ECR images (#69)

This commit is contained in:
Philipp Trulson 2023-02-15 13:21:30 +01:00 committed by GitHub
parent 66a554d6f9
commit 7c03c8a51b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;