Documentation ¶
Overview ¶
Package hook defines Sparta WorkflowHooks that can be added to the WorkflowHooks struct.
Index ¶
Constants ¶
View Source
const UPXDockerFile = `
FROM alpine:edge
RUN apk add --no-cache upx=3.96-r1
ENTRYPOINT [ "/usr/bin/upx" ]
`
UPXDockerFile is the docker file used to build the local UPX image to do the compression.
Variables ¶
This section is empty.
Functions ¶
func BuildDockerImageHook ¶
func BuildDockerImageHook(dockerFilePath string, dockerWorkingDirectory string, dockerTags map[string]string) sparta.WorkflowHookHandler
BuildDockerImageHook is the WorkflowHookHandler responsible for running a docker build with the given path, working directory, and provided tags...
func PostBuildUPXCompressHook ¶
func PostBuildUPXCompressHook(dockerImageName string) sparta.WorkflowHookHandler
PostBuildUPXCompressHook returns a WorkflowHookHandler that handles UPX compressing the `go` binary containing our functions
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.