Sign inSign up

cenk1cenk2/pipe-go

By cenk1cenk2

•Updated 1 day ago

Golang operations for pipelines.

Image
0

10K+

cenk1cenk2/pipe-go repository overview

⁠pipe-go

Pipe for Go builds.

pipe-go [GLOBAL FLAGS] [COMMAND] [FLAGS]

⁠Global Flags

CLI

Flag / EnvironmentDescriptionTypeDefault
$LOG_LEVELDefine the log level for the application.string
enum("panic", "fatal", "warn", "info", "debug", "trace")
"info"
$ENV_FILEEnvironment files to inject.string[]

⁠Commands

⁠pipe-go install

Vendor go modules.

pipe-go install [FLAGS]

⁠Flags

Install

Flag / EnvironmentDescriptionTypeDefault
$GO_INSTALL_VERIFYUse the sum file to verify module integrity.booltrue
$GO_INSTALL_ARGSArguments to append to the install command.string

Setup

Flag / EnvironmentDescriptionTypeDefault
$GO_CWDWorking directory for go commands.string"."
$GO_CACHECache directory for go commands. Leave empty to use the environment defaults.string"./.go/"
⁠pipe-go build

Build an application.

pipe-go build [FLAGS]

⁠Flags

Build

Flag / EnvironmentDescriptionTypeDefault
$GO_BUILD_ARGSArguments to append to the build command.string
$GO_BUILD_OUTPUTOutput location for the build artifacts.string"./dist/"
$GO_BUILD_BINARY_NAMEName of the binary to output during build.string"bin"
$GO_BUILD_BINARY_TEMPLATEBinary naming for the build artifact.string
format(Template(map[string]string))
"{{ .name }}{{ if .os }}-{{ .os }}{{ end }}{{ if .arch }}-{{ .arch }}{{ end }}"
$GO_BUILD_LINKER_FLAGS
$GO_BUILD_LINKER
Arguments for the linker during the build process.string
format(Template())
$GO_BUILD_ENABLE_CGO
$CGO_ENABLED
Enable CGO during the build process.boolfalse
$GO_BUILD_TARGETSBuild targets for the build process.string
format(yaml([]struct{ os?: string, arch?: string }))
"[]"
$GO_BUILD_TAGSBuild tags for the build process.string[]
$GO_BUILD_VARIABLESBuild variables for the build process.string
format(yaml(map[string]string))
"{}"
Setup
Flag / EnvironmentDescriptionTypeDefault
$GO_CWDWorking directory for go commands.string"."
$GO_CACHECache directory for go commands. Leave empty to use the environment defaults.string"./.go/"
⁠pipe-go lint

Run golangci-lint on the project.

pipe-go lint [FLAGS]

⁠Flags

Lint

Flag / EnvironmentDescriptionTypeDefault
$GO_LINT_ARGSArguments to append to the lint command.string
$GO_LINT_TIMEOUTTimeout for the lint command.duration5m0s
Setup
Flag / EnvironmentDescriptionTypeDefault
$GO_CWDWorking directory for go commands.string"."
$GO_CACHECache directory for go commands. Leave empty to use the environment defaults.string"./.go/"
⁠pipe-go test

Run ginkgo on the project.

pipe-go test [FLAGS]

⁠Flags
Setup
Flag / EnvironmentDescriptionTypeDefault
$GO_CWDWorking directory for go commands.string"."
$GO_CACHECache directory for go commands. Leave empty to use the environment defaults.string"./.go/"

Test

Flag / EnvironmentDescriptionTypeDefault
$GO_TEST_RUNNERTest runner for the test command.string
format(enum("ginkgo", "go"))
"ginkgo"
$GO_TEST_ARGSArguments to append to the test command.string
$GO_TEST_COVERAGECoverage profile to write. Leave empty to skip coverage.string"coverage.out"
⁠pipe-go tool

Run a specified go tool.

pipe-go tool [FLAGS] Tool to run.

⁠Arguments
ArgumentUsageTypeValues
argTool to run.string[]0..*
⁠Flags
Setup
Flag / EnvironmentDescriptionTypeDefault
$GO_CWDWorking directory for go commands.string"."
$GO_CACHECache directory for go commands. Leave empty to use the environment defaults.string"./.go/"

Tool

Flag / EnvironmentDescriptionTypeDefault
$GO_TOOLBinary that provides the tooling.string
$GO_TOOL_ARGSArguments to append to the tool command.string

Tag summary

Content type

Image

Digest

sha256:7b079465f…

Size

113.2 MB

Last updated

1 day ago

docker pull cenk1cenk2/pipe-go