From 2f55cbd70dbb896ce181ad738a1d35a6761d4d35 Mon Sep 17 00:00:00 2001 From: Gary Wu Date: Wed, 6 Jun 2018 14:52:29 -0700 Subject: Allow only released docker images in the manifest Change-Id: I8ebc0e6a8b923a4b9c81403ade7248a4396b179e Issue-ID: INT-504 Signed-off-by: Gary Wu --- version-manifest/src/main/scripts/check-docker-manifest.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'version-manifest/src/main/scripts') diff --git a/version-manifest/src/main/scripts/check-docker-manifest.sh b/version-manifest/src/main/scripts/check-docker-manifest.sh index 26e63b82d..6aa2374b1 100755 --- a/version-manifest/src/main/scripts/check-docker-manifest.sh +++ b/version-manifest/src/main/scripts/check-docker-manifest.sh @@ -18,20 +18,12 @@ for line in $(tail -n +2 $1); do image=$(echo $line | cut -d , -f 1) tag=$(echo $line | cut -d , -f 2) - tags=$(curl -s $NEXUS_PUBLIC_PREFIX/$image/tags/list | jq -r '.tags[]' 2> /dev/null) + tags=$(curl -s $NEXUS_RELEASE_PREFIX/$image/tags/list | jq -r '.tags[]' 2> /dev/null) echo "$tags" | grep -q "^$tag\$" if [ $? -ne 0 ]; then - echo "[ERROR] $image:$tag not found" + echo "[ERROR] $image:$tag not released" #echo "$tags" | sed 's/^/ /' (( err++ )) - - else - tags=$(curl -s $NEXUS_RELEASE_PREFIX/$image/tags/list | jq -r '.tags[]' 2> /dev/null) - echo "$tags" | grep -q "^$tag\$" - if [ $? -ne 0 ]; then - echo "[WARN] $image:$tag not released" - #echo "$tags" | sed 's/^/ /' - fi fi done exit $err -- cgit 1.2.3-korg