From aaaa6adcbaffadfc16c29b9af9b2b88ee16f8227 Mon Sep 17 00:00:00 2001 From: Ryan Draga Date: Thu, 5 Nov 2026 15:47:14 -0500 Subject: [PATCH] Deploy the chart app version instead of latest. A Helm upgrade left the running pod in place because the image tag never changed. Co-authored-by: Cursor --- README.md | 2 +- deploy/helm/squirrelbot/templates/_helpers.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 65af79c..0e06111 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ Each release includes: - The image `ghcr.io/boxingoctopuscreative/squirrelbot`, tagged with the version and with `latest`. - The Helm chart, attached to the GitHub release and published to `oci://ghcr.io/boxingoctopuscreative/charts/squirrelbot`. Each release also carries an `index.yaml`, so Helm can add the release archive as a chart repository. -The chart pulls `ghcr.io/boxingoctopuscreative/squirrelbot`. `make image` builds the local name `squirrelbot`. Set `image.repository=squirrelbot` to use that image. Install the published chart with the same `--set` values as the local chart, and set `--version` to the release you want. +The chart pulls `ghcr.io/boxingoctopuscreative/squirrelbot` tagged with the chart app version. `make image` builds the local name `squirrelbot`. Set `image.repository=squirrelbot` and `image.tag` to use that image. Install the published chart with the same `--set` values as the local chart, and set `--version` to the release you want. ```sh helm repo add squirrelbot https://github.com/BoxingOctopusCreative/SquirrelBot/releases/latest/download diff --git a/deploy/helm/squirrelbot/templates/_helpers.tpl b/deploy/helm/squirrelbot/templates/_helpers.tpl index b69eb48..77ca199 100644 --- a/deploy/helm/squirrelbot/templates/_helpers.tpl +++ b/deploy/helm/squirrelbot/templates/_helpers.tpl @@ -31,7 +31,7 @@ {{- define "squirrelbot.image" -}} {{- $image := .Values.image | default dict }} {{- $repository := $image.repository | default "ghcr.io/boxingoctopuscreative/squirrelbot" }} -{{- $tag := $image.tag | default "latest" }} +{{- $tag := $image.tag | default .Chart.AppVersion | default "latest" }} {{- printf "%s:%s" $repository $tag }} {{- end }}