Print image input file and Docker version

This commit is contained in:
Jakub Beránek 2024-01-28 17:01:47 +01:00
parent da5ab5ecd3
commit 09e0d4f89a
No known key found for this signature in database
GPG Key ID: 909CD0D26483516B

View File

@ -84,8 +84,13 @@ 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
# On non-CI or PR jobs, we don't have permissions to write to the registry cache, so we should
# not use `docker login` nor caching.
if [[ "$CI" == "" ]] || [[ "$PR_CI_JOB" == "1" ]];