mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: use dynamic tag for comparing latest tag digest
This commit is contained in:
committed by
Nicholas Penree
parent
d08530d451
commit
4d2a9f8aa7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user