Module "pack/docker/build/executeDockerBuild"
Type aliases
DockerImageNameCreator
Docker
ImageNameCreator: (p: GitProject, sdmGoal: SdmGoalEvent, options: DockerOptions, ctx: HandlerContext) => Promise<Array<{ name: string; registry: string; tags: string[] }>>
Type declaration
-
-
Parameters
-
p: GitProject
-
-
-
ctx: HandlerContext
Returns Promise<Array<{ name: string; registry: string; tags: string[] }>>
Functions
Const DefaultDockerImageNameCreator
- DefaultDockerImageNameCreator(p: GitProject, sdmGoal: SdmGoalEvent, options: DockerOptions, context: HandlerContext): Promise<{ name: string; registry: string; tags: string[] }[]>
-
Parameters
-
p: GitProject
-
-
-
context: HandlerContext
Returns Promise<{ name: string; registry: string; tags: string[] }[]>
buildWithDocker
-
Parameters
-
images: string[]
-
dockerfilePath: string
-
-
buildWithKaniko
-
Parameters
-
images: string[]
-
imageNames: Array<{ name: string; registry: string; tags: string[] }>
-
dockerfilePath: string
-
-
checkIsBuilderAvailable
- checkIsBuilderAvailable(cmd: string, ...args: string[]): Promise<void>
-
Parameters
-
cmd: string
-
Rest ...args: string[]
dockerConfigPath
-
Parameters
Returns string
getExternalUrls
- getExternalUrls(images: Array<{ name: string; registry: string; tags: string[] }>, options: DockerOptions): ExecuteGoalResult["externalUrls"]
-
Parameters
-
images: Array<{ name: string; registry: string; tags: string[] }>
-
Returns ExecuteGoalResult["externalUrls"]
pushEnabled
-
Parameters
Returns Promise<boolean>
Execute a Docker build for the project