Drone
Drone 关联项目
编写项目源代码
$ mkdir drone-demo
$ cd drone-demo
$ git init
$ git remote add origin git@github.com:username/drone-demo.git推送项目源代码到 GitHub
查看项目构建过程及结果

参考链接
Last updated
$ mkdir drone-demo
$ cd drone-demo
$ git init
$ git remote add origin git@github.com:username/drone-demo.git
Last updated
package main
import "fmt"
func main(){
fmt.Printf("Hello World!\n");
}kind: pipeline
type: docker
name: build
steps:
- name: build
image: golang:alpine
pull: if-not-exists # always never
environment:
KEY: VALUE
commands:
- echo $KEY
- pwd
- ls
- CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
- ./app
trigger:
branch:
- master.
├── .drone.yml
└── app.go$ git add .
$ git commit -m "test drone ci"
$ git push origin master