truncate CIRCLE_SHA1 to match github

LT1AB
Gerald Manipon 2019-05-09 18:53:07 +00:00
parent bdae7a2c8e
commit 0bd95e230d
1 changed files with 2 additions and 1 deletions

View File

@ -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