Pipe for Go builds.
pipe-go [GLOBAL FLAGS] [COMMAND] [FLAGS]
CLI
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$LOG_LEVEL | Define the log level for the application. | stringenum("panic", "fatal", "warn", "info", "debug", "trace") | "info" |
$ENV_FILE | Environment files to inject. | string[] |
pipe-go installVendor go modules.
pipe-go install [FLAGS]
Install
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$GO_INSTALL_VERIFY | Use the sum file to verify module integrity. | bool | true |
$GO_INSTALL_ARGS | Arguments to append to the install command. | string |
Setup
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$GO_CWD | Working directory for go commands. | string | "." |
$GO_CACHE | Cache directory for go commands. Leave empty to use the environment defaults. | string | "./.go/" |
pipe-go buildBuild an application.
pipe-go build [FLAGS]
Build
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$GO_BUILD_ARGS | Arguments to append to the build command. | string | |
$GO_BUILD_OUTPUT | Output location for the build artifacts. | string | "./dist/" |
$GO_BUILD_BINARY_NAME | Name of the binary to output during build. | string | "bin" |
$GO_BUILD_BINARY_TEMPLATE | Binary naming for the build artifact. | stringformat(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. | stringformat(Template()) | |
$GO_BUILD_ENABLE_CGO$CGO_ENABLED | Enable CGO during the build process. | bool | false |
$GO_BUILD_TARGETS | Build targets for the build process. | stringformat(yaml([]struct{ os?: string, arch?: string })) | "[]" |
$GO_BUILD_TAGS | Build tags for the build process. | string[] | |
$GO_BUILD_VARIABLES | Build variables for the build process. | stringformat(yaml(map[string]string)) | "{}" |
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$GO_CWD | Working directory for go commands. | string | "." |
$GO_CACHE | Cache directory for go commands. Leave empty to use the environment defaults. | string | "./.go/" |
pipe-go lintRun golangci-lint on the project.
pipe-go lint [FLAGS]
Lint
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$GO_LINT_ARGS | Arguments to append to the lint command. | string | |
$GO_LINT_TIMEOUT | Timeout for the lint command. | duration | 5m0s |
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$GO_CWD | Working directory for go commands. | string | "." |
$GO_CACHE | Cache directory for go commands. Leave empty to use the environment defaults. | string | "./.go/" |
pipe-go testRun ginkgo on the project.
pipe-go test [FLAGS]
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$GO_CWD | Working directory for go commands. | string | "." |
$GO_CACHE | Cache directory for go commands. Leave empty to use the environment defaults. | string | "./.go/" |
Test
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$GO_TEST_RUNNER | Test runner for the test command. | stringformat(enum("ginkgo", "go")) | "ginkgo" |
$GO_TEST_ARGS | Arguments to append to the test command. | string | |
$GO_TEST_COVERAGE | Coverage profile to write. Leave empty to skip coverage. | string | "coverage.out" |
pipe-go toolRun a specified go tool.
pipe-go tool [FLAGS] Tool to run.
| Argument | Usage | Type | Values |
|---|---|---|---|
arg | Tool to run. | string[] | 0..* |
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$GO_CWD | Working directory for go commands. | string | "." |
$GO_CACHE | Cache directory for go commands. Leave empty to use the environment defaults. | string | "./.go/" |
Tool
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$GO_TOOL | Binary that provides the tooling. | string | |
$GO_TOOL_ARGS | Arguments to append to the tool command. | string |
Content type
Image
Digest
sha256:7b079465f…
Size
113.2 MB
Last updated
2 days ago
docker pull cenk1cenk2/pipe-go