Job: go-generate

run go generate and export the generated files as artifacts

Usage

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

Inputs

NameDescriptionDefault
argsadditional arguments to pass to the go generate command./...
dirthe directory to build.
nameThe name of the job applicationgolang:go-generate
outputthe output file/folder**/generated/
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 pattern to export artifacts$[[ inputs.output ]]

Artifacts

  • ${OUTPUT}

Expires in: 1 week.