无人机构建状态未在 GitHub 中更新,永远待定

Drone build status not updated in GitHub, pending forever

我已经看到 Drone documentation 在代理后面安装 Drone 并且我完全按照说明进行操作,但它仍然不适合我。现在发生的事情是 GitHub 成功将事件发送到 Drone,Drone 的构建工作正常,但是 GitHub 在构建完成时从未收到响应。结果,GitHub 认为每个构建都是 "in progress" 永远。

Drone does its builds just fine, but GitHub never receives a response when the build finishes

安装和配置 Drone 服务器时,您需要设置 DRONE_HOST 环境变量 [1]。 Drone 使用此环境变量来确定其自己的 public 地址,以便它可以 post 使用正确的 url.

状态更新到 GitHub
DRONE_HOST=https://drone.yourcompnay.com

如果此值丢失或未正确配置,Drone 将无法更新 GitHub 状态,导致以下错误日志:

level=error msg="error setting commit status for octocat/hello-world/244"

请注意,此问题与 nginx 配置无关。

[1] http://docs.drone.io/installation/