mirror of
https://github.com/redhat-actions/push-to-registry.git
synced 2025-02-22 18:21:20 +01:00
Don't add docker.io prefix to ECR images (#69)
This commit is contained in:
parent
66a554d6f9
commit
7c03c8a51b
3 changed files with 3 additions and 2 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
@ -83,6 +83,7 @@ export function getFullDockerImageName(image: string): string {
|
||||||
case 1:
|
case 1:
|
||||||
return `${DOCKER_IO_NAMESPACED}/${image}`;
|
return `${DOCKER_IO_NAMESPACED}/${image}`;
|
||||||
case 2:
|
case 2:
|
||||||
|
if (image.includes("amazonaws.com")) return image;
|
||||||
return `${DOCKER_IO}/${image}`;
|
return `${DOCKER_IO}/${image}`;
|
||||||
default:
|
default:
|
||||||
return image;
|
return image;
|
||||||
|
|
Loading…
Add table
Reference in a new issue