drone 几个有用的命令

1. 安装cli 工具

linux 

curl -L https://github.com/drone/drone-cli/releases/download/v0.8.5/drone_linux_amd64.tar.gz | tar zx
sudo install -t /usr/local/bin drone


mac
curl -L https://github.com/drone/drone-cli/releases/download/v0.8.5/drone_darwin_amd64.tar.gz | tar zx sudo cp drone /usr/local/bin

2.  全部命令

     build      manage builds
     deploy     deploy code
     exec       execute a local build
     info       show information about the current user
     registry   manage registries
     secret     manage secrets
     repo       manage repositories
     user       manage users
     server     manage servers
     autoscale  manage autoscaling
     help, h    Shows a list of commands or help for one command
 
3. 几个命令说明
registry  可以进行容器镜像仓库的管理(包括密钥)

secret    存储一些项目敏感的信息,比如密码,账户信息,数据库信息

repo      git 代码管理

build     项目构建的一些操作,比如查看信息,启动构建

deploy    执行项目的部署
4. 参考文档
http://docs.drone.io/cli-installation/

猜你喜欢

转载自www.cnblogs.com/rongfengliang/p/8981949.html