This commit is contained in:
Joseph Garrone
2024-12-17 10:44:24 +01:00
parent 70570faed6
commit 2b2bb20658
3 changed files with 56 additions and 58 deletions

View File

@ -97,7 +97,7 @@ export async function command(params: {
const { cliCommandOptions, buildContext } = params;
const availableTags = await getSupportedDockerImageTags({
const { allSupportedTags, latestMajorTags } = await getSupportedDockerImageTags({
buildContext
});
@ -105,7 +105,7 @@ export async function command(params: {
if (cliCommandOptions.keycloakVersion !== undefined) {
const cliCommandOptions_keycloakVersion = cliCommandOptions.keycloakVersion;
const tag = availableTags.find(tag =>
const tag = allSupportedTags.find(tag =>
tag.startsWith(cliCommandOptions_keycloakVersion)
);
@ -143,7 +143,7 @@ export async function command(params: {
);
const { value: tag } = await cliSelect<string>({
values: availableTags
values: latestMajorTags
}).catch(() => {
process.exit(-1);
});