workspace:
base: /srv/drone-demo
path: .
pipeline:
name: build_linux_amd64
build:
image: golang
environment:
GOOS: linux
GOARCH: amd64
# pull: true
commands:
- pwd
- ls
- go env -w GOPROXY=https://goproxy.io,direct
- go get -u github.com/aliyun/alibaba-cloud-sdk-go/services/alidns
- go mod init alidns
- go mod tidy
- go build alidns.go
- ls -al
name: build_windows_amd-64
GOOS: windows