appleboy / drone-scp

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

Do the multiple host support from_secret? #97

Closed mrxliu closed 5 years ago

mrxliu commented 5 years ago

The following example(github readme.md):

pipeline:
  scp:
    image: appleboy/drone-scp
    settings:
      host:
        - example1.com
        - example2.com
      username: ubuntu

But i want to like the following example, can anyone help me ?

pipeline:
  scp:
    image: appleboy/drone-scp
    settings:
      host:
        - from_secret: EXAMPLE_HOST1
        - from_secret: EXAMPLE_HOST2
      username: ubuntu
appleboy commented 5 years ago

@mrxliu Try the following config:

kind: pipeline
name: default

steps:
  - name: upload
    image: appleboy/drone-scp
    settings:
      host:
        from_secret: EXAMPLE_HOST
      username: ubuntu

and set the EXAMPLE_HOST value as example01.com,example02.com.

mrxliu commented 5 years ago

ok, 3q