appleboy / drone-scp

Copy files and artifacts via SSH using a binary, docker or Drone CI.
MIT License
142 stars 30 forks source link

Doesn't work env in settings block with drone version 1 #101

Closed theshamuel closed 4 years ago

theshamuel commented 5 years ago

Hi there, I tried to use this block in .drone.yml from official docs http://plugins.drone.io/appleboy/drone-scp/:

....
  deploy:
    image: appleboy/drone-scp:1.5-linux-amd64
    settings:
      host: `MY_SERVER`
      username: `MY_USER`
      password: test
      port: 22
      command_timeout: 2m
      target: `FILE`
      source: `FILE`
...

I got an error "Error: missing server host "

after changing the conf to :

....
  deploy:
    image: appleboy/drone-scp:1.5-linux-amd64
    host: `MY_SERVER`
    username: `MY_USER`
    password: test
    port: 22
    command_timeout: 2m
    target: `FILE`
    source: `FILE`
...

everything started to work fine. it seems the block settings does not work

appleboy commented 5 years ago

What is your drone version? 1.x?

theshamuel commented 5 years ago

yup

appleboy commented 5 years ago

Can you also try the latest version of drone?

The following only support 0.8 or under version.

  deploy:
    image: appleboy/drone-scp:1.5-linux-amd64
    host: `MY_SERVER`
    username: `MY_USER`
    password: test
    port: 22
    command_timeout: 2m
    target: `FILE`
    source: `FILE`
theshamuel commented 5 years ago

sure, I will try with 1.5 version

appleboy commented 4 years ago

Please reopen the issue if face the same problem.