Skip to content

Commit

Permalink
refactor: use dynamic tag for comparing latest tag digest
Browse files Browse the repository at this point in the history
  • Loading branch information
szwabodev authored and drudge committed Dec 21, 2024
1 parent d08530d commit 4d2a9f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/server/src/services/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4d2a9f8

Please sign in to comment.