File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,11 @@ if [ -f "$docker_dir/$image/Dockerfile" ]; then
63
63
uname -m >> $hash_key
64
64
65
65
docker --version >> $hash_key
66
+
67
+ # Include cache version. Currently it is needed to bust Docker
68
+ # cache key after opting in into the old Docker build backend.
69
+ echo " 1" >> $hash_key
70
+
66
71
cksum=$( sha512sum $hash_key | \
67
72
awk ' {print $1}' )
68
73
@@ -90,6 +95,12 @@ if [ -f "$docker_dir/$image/Dockerfile" ]; then
90
95
context=" $script_dir "
91
96
fi
92
97
echo " ::group::Building docker image for $image "
98
+
99
+ # As of August 2023, Github Actions have updated Docker to 23.X,
100
+ # which uses the BuildKit by default. It currently throws aways all
101
+ # intermediate layers, which breaks our usage of S3 layer caching.
102
+ # Therefore we opt-in to the old build backend for now.
103
+ export DOCKER_BUILDKIT=0
93
104
retry docker \
94
105
build \
95
106
--rm \
You can’t perform that action at this time.
0 commit comments