refactor: use dynamic tag for comparing latest tag digest

This commit is contained in:
UndefinedPony
2024-12-21 18:33:22 +01:00
committed by Nicholas Penree
parent d08530d451
commit 4d2a9f8aa7

View File

@@ -72,7 +72,9 @@ export const getUpdateData = async (): Promise<IUpdateData> => {
results: [{ digest: string; name: string }];
};
const { results } = data;
const latestTagDigest = results.find((t) => t.name === "latest")?.digest;
const latestTagDigest = results.find(
(t) => t.name === getDokployImageTag(),
)?.digest;
if (!latestTagDigest) {
return DEFAULT_UPDATE_DATA;