<build artifact type>:<language>
exec:go
local:exec
docker:go
local:docker
, cluster:k8s
docker:generic
local:docker
, cluster:k8s
--build-cfg
flags for single
commands, and in the composition file for composition
commands..env.toml
: [builders]
section.exec:go
builder uses the machine's own Go installation to compile and build a binary. Below are the options this builder supports. None of these are required and need only be edited if the defaults do not work well in your environment.‌module_path
fresh_gomod
exec_pkg
fresh_gomod
go.mod
filesdocker:go
builder uses the user's local Docker daemon to construct a Docker image. By default, the docker:go
builder will leverage a goproxy
container to speed up fetching of Go modules. Additionally, all builds are performed on an isolated Docker network.‌go_version
module_path
fresh_gomod
exec_pkg
fresh_gomod
go.mod
filespush_registry
registry_type
aws
or dockerhub
go_proxy_mode
go_proxy_url
go_proxy_mode
is custom. Use a custom go_proxy instance.extra_sources
on the manifest.toml
file, consisting of a builder => []paths
, which specify which paths to include as extras for each builders.docker:go
build, you could add this snippet to the plan's manifest:exec:go
builder. This command will produce a binary which you can find in ~/testground/
on Linux and macOS systems.docker:go
builder. This command will produce a Docker image.docker:go
builder to build an image and then push the image to DockerHub (configure credentials in env.toml file).barrier-local.toml
. Note that the composition file will contain the builder and runner so specifying the builder on the command-line is not used in this example.