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/
本文介绍如何在 Linux 和 Mac 平台上安装 Drone CLI 工具,并提供了详细的命令列表及其说明,涵盖构建管理、部署代码、执行本地构建等功能。
6695

被折叠的 条评论
为什么被折叠?



