Help Center/
CodeArts Build/
User Guide/
Configuring Build Actions/
Code-based Build/
Configuring a Task/
Using YAML to Configure a Build with Go
Updated on 2023-12-06 GMT+08:00
Using YAML to Configure a Build with Go
1 2 3 4 5 6 7 8 9 10 11 12 |
version: 2.0 # The value must be 2.0.
steps:
BUILD:
- go:
inputs:
command: |
export GO15VENDOREXPERIMENT=1
export GOPROXY=https://goproxy.cn
mkdir -p $GOPATH/src/example.com/demo/
cp -rf . $GOPATH/src/example.com/demo/
go install example.com/demo
cp -rf $GOPATH/bin/ ./bin
|
Parameter |
Type |
Description |
Mandatory |
Default Value |
---|---|---|---|---|
command |
string |
Execute commands. |
Yes |
None |
Parent topic: Configuring a Task
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.