船长:船长-将您的Git工作流程转换为Docker容器

时间:2021-01-30 19:05:57
【文件属性】:
文件名称:船长:船长-将您的Git工作流程转换为Docker容器
文件大小:29KB
文件格式:ZIP
更新时间:2021-01-30 19:05:57
git docker cli ci build-tool 介绍 船长-将您的Git工作流程转换为可连续交付的Docker容器 在captain.yaml定义您的工作流程,并使用captain来进行持续交付服务,以为每次提交创建容器,对其进行测试,然后仅在测试通过时将其推送到注册表中。 使用captain build来构建存储库的Dockerfile。 如果您的存储库具有本地更改,则仅将容器标记为最新,否则将容器标记为最新,即COMMIT_ID和BRANCH_NAME 。 现在,您的Git提交树将在本地Docker存储库中复制。 使用captain test进行测试 使用captain push将选定的图像发送到远程存储库 从另一方面,您现在可以拉出要测试的功能分支,或使用传播到容器标签的git标签创建分发渠道(例如“ alpha”,“ beta”,“稳定”)。 安装 要安装队长,请运行: curl -sSL https://raw.githubusercontent.com/harbur/captain/v1.1.3/install.sh | bash 您将需要在PATH添加~/.captain/bin 。 例如,在.bashrc或.z
【文件预览】:
captain-master
----.travis.yml(366B)
----release.sh(714B)
----cmd()
--------captain()
----execute_test.go(579B)
----captain.go(9KB)
----colors.go(375B)
----test()
--------OneImage()
--------noCaptainYML()
--------alpine()
--------buildArgs()
--------Simple()
----docker_test.go(2KB)
----git_test.go(1KB)
----Dockerfile(131B)
----git.go(2KB)
----config_test.go(2KB)
----captain_test.go(2KB)
----LICENSE(1KB)
----exitstatus.go(883B)
----install.sh(1KB)
----config.go(5KB)
----VERSION(6B)
----execute.go(635B)
----docker.go(3KB)
----.gitignore(14B)
----Makefile(584B)
----go.sum(9KB)
----README.md(7KB)
----colors_test.go(409B)
----print.go(736B)
----print_test.go(338B)
----go.mod(2KB)
----captain.yml(176B)

网友评论