From 31481b3dbe8b8211d569e167cdab5bd960d08d31 Mon Sep 17 00:00:00 2001 From: Kiran Mova Date: Tue, 10 Nov 2020 19:48:40 +0530 Subject: [PATCH] fix(build): setup travis push (#4) A step to extract the IMAGEID of the ci image was missed causing travis to fail pushing the images. Added the step to extract IMAGEID. Signed-off-by: kmova --- build/push.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build/push.sh b/build/push.sh index 7d974a9..471fefa 100755 --- a/build/push.sh +++ b/build/push.sh @@ -48,6 +48,14 @@ fi # The below steps are required for pushing arch specific images. # This steps will be removed eventually in favour of buildx-push +IMAGEID=$( sudo docker images -q "${DIMAGE}:ci" ) +echo "${DIMAGE}:ci -> $IMAGEID" +if [ -z "${IMAGEID}" ]; +then + echo "Error: unable to get IMAGEID for ${DIMAGE}:ci"; + exit 1 +fi + # Generate a unique tag based on the commit and tag BUILD_ID=$(git describe --tags --always)