无人机ssh插件未触发

时间:2016-01-12 14:14:27

标签: drone drone.io

我的drone.yml文件很简单:

build:
    image: node
    commands:
        - echo $${BRANCH}
deploy:
    ssh:
        host: my-domain
        user: admin
        port: 22
        commands:
            - touch /home/admin/testdrone

但是在输出中似乎永远不会拉出ssh plugin

[info] Pulling image plugins/drone-git:latest
$ git init
Initialized empty Git repository in /drone/src/github.com/.../.git/
$ git remote add origin https://github.com/....git
$ git fetch --no-tags --depth=50 origin +refs/pull/782/merge:
From https://github.com/...
* branch            refs/pull/782/merge -> FETCH_HEAD
$ git checkout -qf FETCH_HEAD
$ echo drone-deploy
drone-deploy

我如何调查出现了什么问题?

1 个答案:

答案 0 :(得分:1)

事实证明,只有当钩子一个Pull Request时才会执行部署步骤。这就是我的设置出了问题