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'