Skip to content

Commit

Permalink
Print image input file and checksum in CI only
Browse files Browse the repository at this point in the history
  • Loading branch information
DianQK committed Feb 9, 2024
1 parent 98aa362 commit bc31920
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ci/docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,12 @@ if [ -f "$docker_dir/$image/Dockerfile" ]; then
# Include cache version. Can be used to manually bust the Docker cache.
echo "2" >> $hash_key

echo "Image input"
cat $hash_key

cksum=$(sha512sum $hash_key | \
awk '{print $1}')
echo "Image input checksum ${cksum}"
fi

dockerfile="$docker_dir/$image/Dockerfile"
Expand All @@ -84,9 +88,6 @@ if [ -f "$docker_dir/$image/Dockerfile" ]; then
context="$script_dir"
fi
echo "::group::Building docker image for $image"
echo "Image input"
cat $hash_key
echo "Image input checksum ${cksum}"

# Print docker version
docker --version
Expand Down

0 comments on commit bc31920

Please sign in to comment.