将插件安装到 Drone CI(Trigger 插件)

Installing a plugin into Drone CI (the Trigger plugin)

我是 Drone 新手,我想使用我的第一个插件,即这个插件:http://addons.drone.io/trigger/

但是,Drone 文档并没有真正解释如何安装插件。我所做的是将示例 yaml 复制到我的 .drone.yml,结果是(显然我已经审查了敏感信息,但每个密钥都与真实文档相同):

pipeline:
    build:
        image: docker
        commands:
            - docker build .
        volumes:
            - /var/run/docker.sock:/var/run/docker.sock

    notify:
        downstream:
            image: plugins/trigger
            server: http://my.drone.server
            repositories:
              - My/Repo
            token: mytoken

然而,当我推送这个时,Drone 给我错误:

ERROR: Invalid or missing image                

如果我把图片放进去,如

notify:
    image: plugins/trigger
    downstream:

我得到:

plugins/trigger not found: does not exist or no pull access          

我应该为每个插件构建一个 docker 容器吗?我如何访问此插件?

您收到 "image not found" 错误的原因是 docker 注册表中没有名为 plugins/trigger 的图像。相反,我认为您可能想要 plugins/downstream 图片 [1][2].

[1] http://plugins.drone.io/drone-plugins/drone-downstream/
[2] https://hub.docker.com/r/plugins/downstream/