项目作者: shrimpliu

项目描述 :
drone ci ssh plugin
高级语言: Go
项目地址: git://github.com/shrimpliu/drone-ssh.git
创建时间: 2019-06-14T07:20:25Z
项目社区:https://github.com/shrimpliu/drone-ssh

开源协议:

下载


DRONE-CI SSH 插件

  • 使用

使用私钥登录

  1. kind: pipeline
  2. name: default
  3. steps:
  4. - name: publish
  5. image: droneplugin/ssh
  6. privileged: true
  7. settings:
  8. host: {Your-Remote-Host}
  9. user: {Your-Remote-User}
  10. pem: {Your-Private-Key}
  11. command:
  12. - ls
  13. - echo hello

使用私钥文件登录

  1. kind: pipeline
  2. name: default
  3. steps:
  4. - name: publish
  5. image: droneplugin/ssh
  6. privileged: true
  7. settings:
  8. host: {Your-Remote-Host}
  9. user: {Your-Remote-User}
  10. pem_file: {Your-Private-Key-Path}
  11. command:
  12. - ls
  13. - echo hello

带密码的私钥登录

  1. kind: pipeline
  2. name: default
  3. steps:
  4. - name: publish
  5. image: droneplugin/ssh
  6. privileged: true
  7. settings:
  8. host: {Your-Remote-Host}
  9. user: {Your-Remote-User}
  10. pem: {Your-Private-Key}
  11. passphrase: {Your-Private-Passphrase}
  12. command:
  13. - ls
  14. - echo hello

使用密码登录

  1. kind: pipeline
  2. name: default
  3. steps:
  4. - name: publish
  5. image: droneplugin/ssh
  6. privileged: true
  7. settings:
  8. host: {Your-Remote-Host}
  9. user: {Your-Remote-User}
  10. password: {Your-Remote-Password}
  11. command:
  12. - ls
  13. - echo hello