Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fluentci-io/ssh-plugin
CI Plugin to execute commands on a remote host through SSH.
https://github.com/fluentci-io/ssh-plugin
cicd ssh wasm
Last synced: about 2 months ago
JSON representation
CI Plugin to execute commands on a remote host through SSH.
- Host: GitHub
- URL: https://github.com/fluentci-io/ssh-plugin
- Owner: fluentci-io
- License: mit
- Created: 2024-07-06T12:56:46.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-25T17:21:03.000Z (6 months ago)
- Last Synced: 2024-07-25T20:21:28.737Z (6 months ago)
- Topics: cicd, ssh, wasm
- Language: Rust
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ssh Plugin
[![fluentci pipeline](https://shield.fluentci.io/x/ssh)](https://pkg.fluentci.io/ssh)
[![ci](https://github.com/fluentci-io/ssh-plugin/actions/workflows/ci.yml/badge.svg)](https://github.com/fluentci-io/ssh-plugin/actions/workflows/ci.yml)CI Plugin to execute commands on a remote host through SSH. See [Drone SSH](https://github.com/appleboy/drone-ssh) and [Drone SCP](https://github.com/appleboy/drone-scp) for more information.
## 🚀 Usage
Add the following command to your CI configuration file:
```bash
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`:
```toml
[dependencies]
fluentci-pdk = "0.1.9"
```Use the following code to call the plugin:
```rust
use fluentci_pdk::dag;// ...
dag().call("https://pkg.fluentci.io/[email protected]?wasm=1", "setup", vec!["latest"])?;
```## 📚 Examples
Github Actions:
```yaml
- 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
```