hd-bs
v0.0.30
Published
### 初始化
Readme
docker 构建、部署工具
初始化
- 随便创建一个文件夹,然后执行 init 命令,将文件夹地址当做工作目录。
hd-bs init <工作目录地址>- 执行 config 命令,查看 rc 文件地址。打开配置文件,因为配置有些复杂,建议手动修改。
hd-bs config ls构建并且部署
- (如果不需要执行 build 可以加-p 跳过)
hd-bs bs [-p]只构建
- hd-bs b
hd-bs b只部署
- hd-bs d 192.168.0.12:6002/vue/doc:dev.1.0.0.1.2345
hd-bs d <tag>打标签
hd-bs tag <标签名称>配置
查看配置
hd-bs config ls设置配置
hd-bs config set <key> <value>添加分支
hd-bs config add-branch <分支名称> <服务器host> <服务器上docker所处文件夹>删除分支
hd-bs config delete-branch <分支名称>
