Skip to content

feat(cli): build flags --no-cache/--pull/--build-arg/-q#430

Merged
Jaro-c merged 1 commit into
developfrom
feat/build-flags
Jun 17, 2026
Merged

feat(cli): build flags --no-cache/--pull/--build-arg/-q#430
Jaro-c merged 1 commit into
developfrom
feat/build-flags

Conversation

@Jaro-c

@Jaro-c Jaro-c commented Jun 17, 2026

Copy link
Copy Markdown
Member

Closes #414 (part of CLI parity epic #410).

What

podup build took only service names. Adds the docker compose build overrides: --no-cache, --pull, --build-arg KEY=VAL (repeatable), -q/--quiet.

How

New BuildOptions struct: each flag augments the per-service build: config — forces no-cache/pull on, overrides build.args on conflict (KEY without = reads the env), and -q suppresses build output. Non-breaking: Engine::build_all kept as a default wrapper; overrides go through Engine::build_all_with_options (mirrors up/up_with_options).

Scope

BuildKit-only flags (--builder/--sbom/--provenance/--ssh) out of scope; --push tracked separately under #410.

Verification

  • Real Podman: build_with_cli_no_cache_and_build_arg builds with no_cache=true + --build-arg VERSION=2.0 override → ok.
  • CLI flag-surface test; fmt + clippy clean; non-breaking (semver-safe wrapper).

Closes #414.

@Jaro-c Jaro-c added type:feature New functionality prio:P2 Medium area:cli labels Jun 17, 2026
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>
@Jaro-c Jaro-c force-pushed the feat/build-flags branch from 987e907 to 53cdc0f Compare June 17, 2026 15:52
@Jaro-c Jaro-c merged commit 5c933a3 into develop Jun 17, 2026
13 checks passed
@Jaro-c Jaro-c deleted the feat/build-flags branch June 17, 2026 16:00
Jaro-c added a commit that referenced this pull request Jun 17, 2026
Promote #430 (closes #414) to main. No tag. Adds docker-compose-style
build overrides; non-breaking (build_all_with_options wrapper). CI-green
on develop, real-Podman verified.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:cli prio:P2 Medium type:feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant