From b9c6d16ff02e4f88b5a63cbe37ecc02909088148 Mon Sep 17 00:00:00 2001 From: YoursFunny Date: Thu, 17 Sep 2026 11:38:49 +0800 Subject: [PATCH] docs(ci): note why the docker job skips actions/checkout build-push-action defaults to the Git context, so BuildKit clones the repo itself and the job never needs the workspace. --- .github/workflows/docker.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 0699964..48ed31b 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -80,6 +80,11 @@ jobs: echo "build=true" >> "$GITHUB_OUTPUT" fi + # No `actions/checkout` here on purpose: `docker/build-push-action` defaults + # to the Git context (`https://github.com//.git#`), so + # BuildKit clones the repo itself and authenticates with the automatic + # github.token. Adding `context: .` below without a checkout step would hand + # BuildKit an empty workspace. docker: needs: should-build if: needs.should-build.outputs.build == 'true'