Skip to content

Commit b0f56c3

Browse files
committed
gh: Debug why docker pulled images is not used
1 parent 82047c5 commit b0f56c3

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/.dockerignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
workflows
2+
dockerfiles
3+
actions
4+
ISSUE_TEMPLATE

.github/scripts/build-base-image.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,19 @@ else
5454

5555
BASE_IMAGE_ID=$(docker images -q "${BASE_TAG}:latest")
5656

57-
docker build --pull --tag "${BASE_TAG}:latest" \
57+
58+
set -x
59+
60+
DOCKER_BUILDKIT=1 docker build --pull --tag "${BASE_TAG}:latest" \
5861
${BASE_CACHE} \
5962
--file ".github/dockerfiles/Dockerfile.${BASE_TYPE}" \
6063
--build-arg MAKEFLAGS=-j$(($(nproc) + 2)) \
6164
--build-arg USER=otptest --build-arg GROUP=uucp \
6265
--build-arg uid="$(id -u)" \
6366
--build-arg BASE="${BASE}" .github/
6467

68+
set +x
69+
6570
NEW_BASE_IMAGE_ID=$(docker images -q "${BASE_TAG}:latest")
6671
if [ "${BASE_IMAGE_ID}" = "${NEW_BASE_IMAGE_ID}" ]; then
6772
echo "BASE_BUILD=cached" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)