常规模式
该模式具备最好的通用性,可以结合实际情况落地使用。通常作为流水线的节点存在。
在仓库目录下执行:
./sibyl upload
# 不过通常情况下服务器不会部署在本地
./sibyl upload --url http://12.34.56.78:9876
# 仓库也可能不在当前目录
./sibyl upload --src /tmp/some/place --url http://12.34.56.78:9876
看到下列日志即可代表上传完成。
{"level":"info","ts":1670140951.991765,"caller":"upload/cmd_upload.go:171","msg":"upload batch: 200 - 220"}
{"level":"info","ts":1670140952.001775,"caller":"upload/cmd_upload.go:171","msg":"upload batch: 220 - 240"}
{"level":"info","ts":1670140952.0041962,"caller":"upload/cmd_upload.go:90","msg":"upload graph finished"}
{"level":"info","ts":1670140952.0042171,"caller":"upload/cmd_upload.go:93","msg":"upload finished"}
我们目前支持的语言可查看:支持的语言。