fix: query backend image tags for latest version instead of helm chart
Some checks failed
Build & Release / build (push) Has been cancelled

DO registry API is unreliable for OCI Helm chart tags. Since the CI
pushes images and chart with the same version, use lunarfront-app
image tags which are always indexed correctly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
ryan
2026-04-05 16:37:38 +00:00
parent aee6b33290
commit 49f19d1758

View File

@@ -5,7 +5,8 @@ import { join } from "path";
import { config } from "../lib/config"; import { config } from "../lib/config";
export async function getLatestChartVersion(): Promise<string> { export async function getLatestChartVersion(): Promise<string> {
const res = await fetch("https://api.digitalocean.com/v2/registry/lunarfront/repositories/lunarfront/tags?page=1&per_page=100", { // Query backend image tags instead of Helm chart tags — DO API is unreliable for OCI helm artifacts
const res = await fetch("https://api.digitalocean.com/v2/registry/lunarfront/repositories/lunarfront-app/tags?page=1&per_page=100", {
headers: { Authorization: `Bearer ${config.doToken}` }, headers: { Authorization: `Bearer ${config.doToken}` },
}); });
const data = await res.json() as { tags: { tag: string }[] }; const data = await res.json() as { tags: { tag: string }[] };