compose-hook:git钩子用于运行docker-compose

时间:2021-05-11 16:31:15
【文件属性】:
文件名称:compose-hook:git钩子用于运行docker-compose
文件大小:15KB
文件格式:ZIP
更新时间:2021-05-11 16:31:15
Shell 挂钩 git钩子用于运行docker-compose。 安装 go get -u github.com/wader/compose-hook 需要docker-compose版本1.4.0或更高版本。 用法: 直接将compose-hook用作接收前/接收后符号链接,或从挂钩脚本中以old new ref作为参数调用它。 将compose-hook.yml文件添加到您的git repo中。 在推上, compose-hook将为每个推入的分支查找配置文件,然后运行pull,为已配置的分支构建。 配置 master : # branch name project : webapp # required file : docker-compose_dev.yml # optionl skip_pull : false # optional skip_build : fa
【文件预览】:
compose-hook-master
----.gitignore(58B)
----README.md(2KB)
----test()
--------docker-compose(173B)
--------test_config_skip_up(349B)
--------test_git_hook_update(683B)
--------test_error_up(442B)
--------test_basic(390B)
--------test_config_skip_build(352B)
--------test_config_file(415B)
--------test_config_force_recreate(447B)
--------test_error_build(388B)
--------test_submodule(682B)
--------test_config_tail_log(499B)
--------test_error_pull(331B)
--------test_multi_branch(650B)
--------test_no_compose_hook(160B)
--------test_arg_config(413B)
--------test_ignore_tags(117B)
--------test_remove_branch(218B)
--------test_config_syntax_error(269B)
--------test_config_no_project(210B)
--------test_config_skip_pull(353B)
--------test_multi_branch_diff_config(725B)
--------run(3KB)
--------test_git_hook_pre_receive_via_args(688B)
----LICENSE(1KB)
----compose-hook.go(7KB)
----.travis.yml(130B)
----compose-hook_test.go(356B)

网友评论