Assuming latest supported
This commit is contained in:
parent
9185740d35
commit
b1b6919395
@ -48,7 +48,8 @@ export const { getSupportedKeycloakMajorVersions } = (() => {
|
|||||||
|
|
||||||
return n;
|
return n;
|
||||||
})
|
})
|
||||||
.filter(exclude(undefined));
|
.filter(exclude(undefined))
|
||||||
|
.sort((a, b) => b - a);
|
||||||
|
|
||||||
return cache;
|
return cache;
|
||||||
}
|
}
|
||||||
|
@ -173,12 +173,15 @@ export async function command(params: {
|
|||||||
|
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
} catch {
|
} catch {
|
||||||
|
// NOTE: Latest version
|
||||||
|
const [n] = getSupportedKeycloakMajorVersions();
|
||||||
|
|
||||||
console.warn(
|
console.warn(
|
||||||
chalk.yellow(
|
chalk.yellow(
|
||||||
`Could not determine the major Keycloak version number from the docker image tag ${dockerImageTag}. Assuming 26`
|
`Could not determine the major Keycloak version number from the docker image tag ${dockerImageTag}. Assuming ${n}`
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
return 26;
|
return n;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user