Skip to main content

Ftp Deploy

Syncs a local folder with a remote folder over ftp.

After the initial sync only differences are synced, making deployments super fast!

🚀 Usage​

Add the following command to your CI configuration file:

fluentci run --wasm ftp-deploy deploy --server $FTP_SERVER --username $FTP_USERNAME --password $FTP_PASSWORD

Commands​

NameDescription
deploySyncs a local folder with a remote folder over ftp

Code Examples​

Add fluentci-pdk crate to your Cargo.toml:

[dependencies]
fluentci-pdk = "0.2.1"

Use the following code to call a module function:

use fluentci_pdk::dag;

// ...

dag().call(
"https://pkg.fluentci.io/[email protected]?wasm=1",
"deploy",
vec![
"--server", ftp_server,
"--username", ftp_username,
"--password", ftp_password,
])?;

CI/CD Integration​

The following example shows how to integrate FluentCI with popular CI providers to deploy a folder over ftp:

ci.yml
name: ci
on:
push:
branches:
- main
jobs:
tasks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
- name: deploy
run: fluentci run --wasm ftp-deploy deploy --server $FTP_SERVER --username $FTP_USERNAME --password $FTP_PASSWORD
env:
FTP_SERVER: ${{ secrets.FTP_SERVER }}
FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}