hook

package
v3.0.0-...-bcda2dc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2021 License: MIT Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL