Skip to content

feat: add quiet input that maps to --quiet#1423

Closed
szeyu wants to merge 3 commits into
docker:masterfrom
szeyu:feat/quiet-flag
Closed

feat: add quiet input that maps to --quiet#1423
szeyu wants to merge 3 commits into
docker:masterfrom
szeyu:feat/quiet-flag

Conversation

@szeyu

@szeyu szeyu commented Oct 29, 2025

Copy link
Copy Markdown

This pull request introduces support for a new quiet input, allowing users to suppress build output by mapping to the --quiet flag. The changes update the documentation, action input definitions, input parsing, and argument construction to support this new feature.

Support for quiet build option:

  • Added quiet input to action.yml with description and default value, enabling users to suppress build output.
  • Documented the new quiet input in the README.md table of inputs.

Code updates for input handling:

  • Added quiet property to the Inputs interface in src/context.ts.
  • Updated getInputs() in src/context.ts to parse the quiet input as a boolean.
  • Modified getCommonArgs() in src/context.ts to append --quiet to build arguments if the input is set.

szeyu added 3 commits October 29, 2025 18:28
Signed-off-by: szeyu <szeyu.sim@rytbank.my>
Signed-off-by: szeyu <szeyu.sim@rytbank.my>
Signed-off-by: szeyu <szeyu.sim@rytbank.my>
@crazy-max

crazy-max commented Oct 29, 2025

Copy link
Copy Markdown
Member

Thanks for your contrib but similar to:

We don't want to provide explicit input as it can be done through BUILDKIT_PROGRESS env var. In your case you can do:

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

You also have none available since Buildx 0.29 that doesn't print the image ID.

@szeyu szeyu closed this Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants