This repository has been archived on 2023-12-12. You can view files and clone it, but cannot push or open issues or pull requests.
alidns/.drone.yml

40 lines
848 B
YAML
Raw Normal View History

2021-04-22 21:58:40 +08:00
workspace:
base: /srv/drone-demo
path: .
pipeline:
2021-04-30 22:22:24 +08:00
name: build_linux_amd64
2021-04-22 21:58:40 +08:00
build:
image: golang
2021-04-30 22:22:24 +08:00
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
2021-04-30 22:14:29 +08:00
2021-04-30 22:22:24 +08:00
pipeline:
name: build_windows_amd-64
build:
image: golang
environment:
GOOS: windows
GOARCH: amd64
2021-04-22 21:58:40 +08:00
# pull: true
commands:
- pwd
- ls
2021-04-22 22:22:56 +08:00
- go env -w GOPROXY=https://goproxy.io,direct
2021-04-22 22:30:25 +08:00
- go get -u github.com/aliyun/alibaba-cloud-sdk-go/services/alidns
2021-04-22 22:27:44 +08:00
- go mod init alidns
2021-04-22 22:37:40 +08:00
- go mod tidy
2021-04-22 22:14:44 +08:00
- go build alidns.go
2021-04-30 22:22:24 +08:00
- ls -al