From 79f3d3852ad3cbad52fa7b060e1162fd94d3afa3 Mon Sep 17 00:00:00 2001 From: shripad621git Date: Thu, 18 Jul 2024 16:46:15 +0530 Subject: [PATCH] Fixed the docker image check for gitlab ci --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 984c04bb6..f043cb0ec 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -158,7 +158,8 @@ build_image: - TAG="chip_${CHIP_SHORT_HASH}_idf_${IDF_VERSION}" - echo $TAG - | - if wget -qO- "https://hub.docker.com/v2/repositories/espressif/chip-idf/tags" | grep -q ${TAG}; then + url="https://hub.docker.com/v2/repositories/${DOCKER_IMAGE_NAME}/tags/${TAG}" + if wget -q --spider "$url"; then echo "No Differences detected. The docker image with ${TAG} is present in docker hub. Skipping docker build " else echo "Differences detected. The docker image with ${TAG} is not present on docker hub. Triggering docker build due to submdoule update or idf version change in CI."