Skip to content

How to show debug build log? #1304

Answered by crazy-max
seepine asked this question in Q&A
Discussion options

You must be logged in to vote

You can set the DEBUG: 1 env var in your workflow that would act the same as the --debug flag:

      -
        name: Build and push
        uses: docker/build-push-action@v6
        with:
          push: true
          tags: user/app:latest
        env:
          DEBUG: 1

If you want the BuildKit logs with debug enabled, see https://docs.docker.com/build/ci/github-actions/configure-builder/#buildkit-container-logs

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by crazy-max
Comment options

You must be logged in to vote
1 reply
@crazy-max
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants