import { BaseCommand } from './base-command'; export interface BuildFromHashFlags { imageName: string; dockerFileName: string; registry: string; dryRun: boolean; tag: string; package: string; dockerBuildFlags: string[]; dockerUsername: string; dockerPassword: string; latest: boolean; } export declare abstract class BuildImageWorkflowBaseCommand extends BaseCommand { /** * Builds the docker image based on the hash that we've sent in. We look to * see if it has been built before we try to build it again (to save time) * @param hash The hash of the folder or directory that we are looking to * build * @param directory The directory where the Dockerfile is stored * @param flags The flags required during the build process */ buildFromHash(hash: string, directory: string, flags: BuildFromHashFlags): Promise; /** * Returns the tag with the hash and a tag specified in the CLI (optional) * @param hash The base hash * @param flags The flags during the build process * @private */ private getTags; /** * Check if the docker image has been built before * @param hash The hash that should be attached to the image * @param flags The flags for the build * @private */ private dockerImageExists; /** * Checks if there is a username and password specified and if there is then * it will login with those credentials * @param flags The build flags * @private */ private dockerLogin; }