Job: go-build

run go build and export outputs as artifacts

Usage

include:
  - component: gitlab.com/release-process/golang/go-build@0.1.0

Inputs

NameDescriptionDefault
argsadditional arguments to pass to the go build command./...
dirthe directory to build.
nameThe name of the job applicationgolang:go-build
outputthe output file/folderout/
stagestage of the jobbuild
versiongo version to use for building1.22

Variables

NameDescriptionDefault
CGO_ENABLEDwether to use cgo or not0
GOARCHtarget architecture (empty means same as build platform)""
GOOStarget operating system (empty means same as build platform)""
OUTPUToutput file/folder$[[ inputs.output ]]

Artifacts

  • ${OUTPUT}

Expires in: 1 week.