From 0bd95e230d08711ff4b6819d5b69a2b302c4e993 Mon Sep 17 00:00:00 2001 From: Gerald Manipon Date: Thu, 9 May 2019 18:53:07 +0000 Subject: [PATCH] truncate CIRCLE_SHA1 to match github --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 93a4382..2be858e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -96,7 +96,8 @@ jobs: name: Build command: | mkdir images - echo 'export TAG="$CIRCLE_SHA1"' >> images/env.sh + SHA1=$(echo $CIRCLE_SHA1 | cut -c1-7) + echo 'export TAG="$SHA1"' >> images/env.sh source images/env.sh docker build --rm --force-rm -t isce/isce2:$TAG -f docker/Dockerfile . cd images