gpt4 book ai didi

gitlab - 我怎样才能只使用 GitLab CI?

转载 作者:行者123 更新时间:2023-12-04 12:50:11 25 4
gpt4 key购买 nike

我在 BitBucket 中有存储库,我很满意,不想将其更改为另一个 cvs。

但我想为我的项目使用一些免费的 CI 服务。

我尝试过的事情:

  • PhpCI,但 PhpCI 支持不佳
  • Jenkins,但它对我来说太复杂了

这就是我开始研究 Gitlab CI 的原因。

我看到 CI 是 gitlab 的一部分(https://about.gitlab.com/gitlab-ci/)。但也许我可以以某种方式只使用 CI,而不使用其他功能。

这可能吗?

最佳答案

没有 GitLab 就无法使用 GitLab CI,但如果您不想,没有人会强制您使用任何其他 GitLab 功能。

Git 是分布式的,您可以将源代码推送到多个目的地。

只需在项目的 .git/config 中将其定义为另一个推送目的地,例如:

[remote "origin"]
url = git@bitbucket.org:user/project.git
pushurl = git@bitbucket.org:user/project.git
pushurl = ssh://git@gitlab.yourdomain/user/project.git
fetch = +refs/heads/*:refs/remotes/origin/*

然后添加 .gitlab-ci.yml,推送,GitLab CI 将运行,而您的源将同时位于 BitBucket 和 GitLab(您将仅用于检查 CI 管道)。

关于gitlab - 我怎样才能只使用 GitLab CI?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40004353/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com