# remote-build-test

A throwaway Helm chart + Dockerfile for validating `build_and_publish_to_apollo`,
especially the Docker-free remote (kaniko) build path added in
`docs/remote-build-spec.md`.

- **Dockerfile** has a real `RUN` step and an **optional** `GREETING` build arg,
  echoed during the build so you can confirm build args flow through (visible in
  the kaniko logs).
- **Chart** is intentionally trivial (one ConfigMap).

## Validate

Point a local `cube-agent` (built from this branch) at the **dev** cloud, then
call `build_and_publish_to_apollo` against this directory. See the PR/spec for
the full test matrix. Example arg shapes:

- Remote build with a build arg:
  `{"chart_path": "examples/remote-build-test", "build_mode": "remote", "build_args": {"GREETING": "hello-from-buildarg"}}`
- Local build (regression check, needs Docker):
  `{"chart_path": "examples/remote-build-test", "build_mode": "local"}`
- Dry run (no side effects):
  `{"chart_path": "examples/remote-build-test", "dry_run": true}`

Publishing creates a `cube-remote-build-test` product in Apollo (dev) — clean it
up afterward if you don't want it lingering.
