1

My drone.yml file is straightforward:

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

But in the output it seems like the ssh plugin is never even pulled:

[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

How can I investigate what's going wrong?

Brad Rydzewski
  • 2,523
  • 14
  • 18
Matteo Suppo
  • 344
  • 1
  • 4
  • 13

1 Answers1

1

Turns out that deploy steps are only executed if the hook is not a Pull Request. That was what was going wrong with my setup

Matteo Suppo
  • 344
  • 1
  • 4
  • 13