Skip to content

ci: build Docker image on chart-releaser tags#36

Merged
themoah merged 2 commits into
mainfrom
fix/couple-image-build-to-chart-release
May 30, 2026
Merged

ci: build Docker image on chart-releaser tags#36
themoah merged 2 commits into
mainfrom
fix/couple-image-build-to-chart-release

Conversation

@themoah
Copy link
Copy Markdown
Owner

@themoah themoah commented May 30, 2026

Problem

ArtifactHub fails scanning the chart's referenced image:

error scanning image themoah/klag:0.1.12: image not found (package klag:0.1.12)

The Release workflow (Docker build/push) only triggered on v* tags. But helm-release.yml's chart-releaser tags the chart as klag-<version>. Bumping the chart to 0.1.12 created tag klag-0.1.12 (not v0.1.12), so release.yml never ran and themoah/klag:0.1.12 was never built. Last image built was v0.1.10; 0.1.11 and 0.1.12 are both missing on Docker Hub and GHCR. Chart.yaml's artifacthub.io/images annotation points at the non-existent 0.1.12.

Fix

  • Trigger Release on klag-* tags too, so a chart release also builds the matching image.
  • For klag-* tags, derive the image version from appVersion in build.gradle.kts (source of truth) rather than the chart-version tag.
  • Always cut the app release as v<version> to avoid colliding with the klag-<version> chart tag.

Result: chart bump → image auto-built; no more drift between chart appVersion and published image.

Follow-up (not in this PR)

The missing 0.1.12 image still needs a one-time build:

gh workflow run release.yml -f version=0.1.12

After that, ArtifactHub's next rescan passes.

🤖 Generated with Claude Code

The Release workflow only triggered on v* tags, but chart-releaser tags
the Helm chart as klag-<version>. Bumping the chart to 0.1.12 created a
klag-0.1.12 tag (not v0.1.12), so themoah/klag:0.1.12 was never built.
ArtifactHub then failed scanning the image referenced by the chart.

- trigger Release on klag-* tags too
- for klag-* tags, derive image version from appVersion in build.gradle.kts
- always cut the app release as v<version> to avoid colliding with the
  klag-<version> chart tag

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@qodo-code-review
Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

Standardize on bare semver for both image tags and GitHub releases
(no v prefix), and make version resolution work for any tag form.

- trigger on klag-* and plain semver tags (drop the v* convention)
- derive version by stripping any tag prefix (klag-, v) to the bare semver
- release tag_name is the bare version, matching the image tag

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@themoah themoah merged commit f7fcaf3 into main May 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant