Skip to content
Latchkey

helm upgrade: Command Reference for CI/CD

The idempotent Helm deploy: upgrade, or install if absent.

helm upgrade --install is the standard CI deploy command: it upgrades an existing release or installs it on first run, in one idempotent step. This reference covers the gating flags and a deploy example built around an immutable tag.

Common flags and usage

  • upgrade --install <release> <chart>: idempotent upgrade-or-install
  • -f values.yaml / --set k=v: override values
  • --wait: block until resources are Ready
  • --atomic: roll back to the prior release on failure
  • --timeout 5m: bound the wait
  • --reuse-values / --reset-values: control value carry-over

Example

shell
helm upgrade --install web ./charts/web \
  --namespace prod \
  --set image.tag=${IMAGE_TAG} \
  --wait --atomic --timeout 5m

In CI

upgrade --install removes the "does this release exist yet?" branch from your pipeline. --atomic rolls the release back to the last good revision if the upgrade fails, and --wait gates on readiness. Set image.tag to an immutable value (commit SHA) so each deploy is a real change. Latchkey managed runners give each deploy job a clean, ephemeral environment for this step.

Key takeaways

  • upgrade --install is the idempotent deploy: one command for both cases.
  • --atomic + --wait + --timeout make the deploy self-gating and self-healing.
  • Pin image.tag to an immutable SHA so upgrades are real changes.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →