mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-20 06:35:22 +02: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