drone 学习四 几个有用的命令

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

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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/
 
 
 
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值