Skip to content
/ ssh-plugin Public template

CI Plugin to execute commands on a remote host through SSH.

License

Notifications You must be signed in to change notification settings

fluentci-io/ssh-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ssh Plugin

fluentci pipeline ci

CI Plugin to execute commands on a remote host through SSH. See Drone SSH and Drone SCP for more information.

🚀 Usage

Add the following command to your CI configuration file:

fluentci run --wasm ssh setup

Functions

Name Description
setup Install drone-ssh and drone-scp
x Execute a command on a remote host
scp Copy files to a remote host

Code Usage

Add fluentci-pdk crate to your Cargo.toml:

[dependencies]
fluentci-pdk = "0.1.9"

Use the following code to call the plugin:

use fluentci_pdk::dag;

// ...

dag().call("https://pkg.fluentci.io/[email protected]?wasm=1", "setup", vec!["latest"])?;

📚 Examples

Github Actions:

- name: Setup Fluent CI CLI
  uses: fluentci-io/setup-fluentci@v5
  with:
    wasm: true
    plugin: ssh
    args: |
      setup
 - name: Verify installation
   run: |
      type drone-ssh
      type drone-scp