1

我的drone.yml文件很简单:

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

但在输出中, ssh 插件似乎从未被拉出:

[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

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

4

1 回答 1

1

事实证明,只有当钩子不是拉取请求时,才会执行部署步骤。这就是我的设置出了什么问题

于 2016-01-13T15:44:44.513 回答