UNPKG

@catladder/cli

Version:

Panter cli tool for cloud CI/CD and DevOps

20 lines (19 loc) 1.07 kB
import type { StringOrBashExpression } from "../../bash/BashExpression"; import type { ComponentContext } from "../../types/context"; export declare const getArtifactsRegistryHost: (context: ComponentContext) => string; export declare const getArtifactsRegistryDockerUrl: (context: ComponentContext) => string; /** * * lecacyReviewImageName is only temporary. In old versions the images had no reviewslug in review apps, which makes cleanup harder. We delete all those images now, but need the path */ export declare const getArtifactsRegistryImageName: (context: ComponentContext, lecacyReviewImageName?: boolean) => StringOrBashExpression; export declare const getArtifactsRegistryBuildCacheImage: (context: ComponentContext) => string; export declare const getArtifactsRegistryImage: (context: ComponentContext) => string; /** * commands to delete unused images. * * @param context * @param keep how many of the newest images to keep * @returns */ export declare const getDeleteUnusedImagesCommands: (context: ComponentContext, keep?: number) => string[];