How to deploy using FTP

Hello Everyone,

This is a short but useful tip we shared with the Semaphore users on multiple occasions and they found it quite helpful. For this reason, I decided to share it here, hope you’ll find it useful.

Given that Semaphore comes with LFTP installed in the base image, we recommend creating a secret and set the variables FTP_USER & FTP_PASSWORD. Then, using a promotion you may deploy your application with the following command:

lftp -c "open -u $FTP_USER,$FTP_PASSWORD YOUR_FTP_HOST; set ssl:verify-certificate no; mirror -R ./ YOUR_REMOTE_PATH"

Note that it’s necessary to replace YOUR_FTP_HOST and YOUR_REMOTE_PATH with the correspondent values.