Skip to content

Commit

Permalink
check_image_version: use public ECR to check if version is already pu…
Browse files Browse the repository at this point in the history
…blished because its last stage in pipeline

Signed-off-by: Wesley Pettit <[email protected]>
  • Loading branch information
PettitWesley committed Mar 14, 2023
1 parent bf2257c commit c47cd83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c47cd83

Please sign in to comment.