0

我们想在我们的 GitLab 实例上禁用 http 访问并仅使用 SSH。无人机可以通过 SSH 以某种方式与 GitLab 通信吗?

4

1 回答 1

0

默认克隆插件使用 git+https 克隆存储库。如果您想更改默认行为并使用 git+ssh,则必须创建自定义克隆插件。

clone:
  custom:
    image: amazia/custom-git-plugin
pipeline:
  build:
    image: golang
    commands:
      - go build
      - go test

上面的示例演示了一个覆盖默认克隆步骤以使用自定义插件的 yaml 配置。以下是一些用于创建自定义插件的资源:

  1. http://docs.drone.io/creating-custom-plugins-bash/
  2. http://docs.drone.io/creating-custom-plugins-golang/
于 2017-10-31T16:30:41.720 回答