From df036e1e006f09ba280306a4ffea888e55ed2a90 Mon Sep 17 00:00:00 2001 From: Sharif Elgamal Date: Thu, 18 Feb 2021 14:40:09 -0800 Subject: [PATCH] retrieve sha properly --- hack/jenkins/kicbase_auto_build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hack/jenkins/kicbase_auto_build.sh b/hack/jenkins/kicbase_auto_build.sh index dd847f0338..a6be4e85ba 100755 --- a/hack/jenkins/kicbase_auto_build.sh +++ b/hack/jenkins/kicbase_auto_build.sh @@ -26,7 +26,9 @@ KV=$(egrep "Version =" pkg/drivers/kic/types.go | cut -d \" -f 2 | cut -d "-" -f GCR_REPO=gcr.io/k8s-minikube/kicbase-builds DH_REPO=kicbase/build export KIC_VERSION=$KV-$now-$ghprbPullId -export KICBASE_IMAGE_REGISTRIES="${GCR_REPO}:${KIC_VERSION} ${DH_REPO}:${KIC_VERSION}" +GCR_IMG=${GCR_REPO}:${KIC_VERSION} +DH_IMG=${DH_REPO}:${KIC_VERSION} +export KICBASE_IMAGE_REGISTRIES="${GCR_IMG} ${DH_IMG}" # Let's make sure we have the newest kicbase reference curl -L https://github.com/kubernetes/minikube/raw/master/pkg/drivers/kic/types.go --output types-head.go @@ -57,7 +59,7 @@ if [ $? -gt 0 ]; then fi # Retrieve the sha from the new imnage -docker pull $KICBASE_IMAGE_REGISTRIES +docker pull $GCR_IMG fullsha=$(docker inspect --format='{{index .RepoDigests 0}}' $KICBASE_IMAGE_REGISTRIES) sha=$(echo ${fullsha} | cut -d ":" -f 2)