Implement cache for fetching available docker images tags

This commit is contained in:
Joseph Garrone
2024-12-15 08:53:54 +01:00
parent 029cfcb591
commit dc942aa5de
3 changed files with 232 additions and 119 deletions

View File

@ -31,7 +31,7 @@ import { rm } from "../tools/fs.rm";
import { downloadAndExtractArchive } from "../tools/downloadAndExtractArchive";
import { startViteDevServer } from "./startViteDevServer";
import { getSupportedKeycloakMajorVersions } from "./realmConfig/defaultConfig";
import { getKeycloakDockerImageLatestSemVerTagsForEveryMajors } from "./getQuayIoKeycloakDockerImageTags";
import { getSupportedDockerImageTags } from "./getSupportedDockerImageTags";
import { getRealmConfig } from "./realmConfig";
export async function command(params: {
@ -96,7 +96,7 @@ export async function command(params: {
const { cliCommandOptions, buildContext } = params;
const availableTags = await getKeycloakDockerImageLatestSemVerTagsForEveryMajors({
const availableTags = await getSupportedDockerImageTags({
buildContext
});