feat(cli): build flags --no-cache/--pull/--build-arg/-q#430
Merged
Conversation
docker compose build accepts --no-cache, --pull, --build-arg KEY=VAL, and -q/--quiet. podup build took only service names. Add the flags, threaded via a new BuildOptions struct: each augments the per-service build: config (forces no-cache/pull on, overrides build.args on conflict) and -q suppresses build output. Non-breaking: the existing Engine::build_all is kept as a default-options wrapper; overrides go through Engine::build_all_with_options (mirroring up/up_with_options). BuildKit-only flags (--builder/--sbom/--provenance/--ssh) stay out of scope; --push is tracked separately under #410. Closes #414. Signed-off-by: Jaro-c <75870284+Jaro-c@users.noreply.github.com>
This was referenced Jun 17, 2026
Jaro-c
added a commit
that referenced
this pull request
Jun 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #414 (part of CLI parity epic #410).
What
podup buildtook only service names. Adds the docker compose build overrides:--no-cache,--pull,--build-arg KEY=VAL(repeatable),-q/--quiet.How
New
BuildOptionsstruct: each flag augments the per-servicebuild:config — forces no-cache/pull on, overridesbuild.argson conflict (KEYwithout=reads the env), and-qsuppresses build output. Non-breaking:Engine::build_allkept as a default wrapper; overrides go throughEngine::build_all_with_options(mirrorsup/up_with_options).Scope
BuildKit-only flags (
--builder/--sbom/--provenance/--ssh) out of scope;--pushtracked separately under #410.Verification
build_with_cli_no_cache_and_build_argbuilds withno_cache=true+--build-arg VERSION=2.0override → ok.Closes #414.