From c47cd83ba33445a55538d8d22549f4590a0b5fcc Mon Sep 17 00:00:00 2001 From: Wesley Pettit Date: Tue, 14 Mar 2023 11:23:28 -0700 Subject: [PATCH] check_image_version: use public ECR to check if version is already published because its last stage in pipeline Signed-off-by: Wesley Pettit --- scripts/publish.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/publish.sh b/scripts/publish.sh index 5c4cd7e8c..2a8e1ec7a 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -478,7 +478,7 @@ check_image_version() { docker_hub_login # check if we can get the image information in dockerhub; if yes, the exit status should be 0 - docker manifest inspect amazon/aws-for-fluent-bit:${1} > /dev/null || EXIT_CODE=$? + docker manifest inspect public.ecr.aws/aws-observability/aws-for-fluent-bit:${1} > /dev/null || EXIT_CODE=$? if [ "${EXIT_CODE}" = "0" ]; then echo "Accidental release: current image version from github source file match a previous version from dockerhub." exit 1