Skip to content

Commit c938624

Browse files
authored
Rollup merge of #120827 - DianQK:docker-run-local, r=Kobzol
Print image input file and checksum in CI only Avoid getting stuck without the variable locally. r? `@Kobzol`
2 parents d9a957b + bc31920 commit c938624

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: src/ci/docker/run.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,12 @@ if [ -f "$docker_dir/$image/Dockerfile" ]; then
7272
# Include cache version. Can be used to manually bust the Docker cache.
7373
echo "2" >> $hash_key
7474

75+
echo "Image input"
76+
cat $hash_key
77+
7578
cksum=$(sha512sum $hash_key | \
7679
awk '{print $1}')
80+
echo "Image input checksum ${cksum}"
7781
fi
7882

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

9192
# Print docker version
9293
docker --version

0 commit comments

Comments
 (0)