*/ -reverse -verbose -delete local -folder/ destination -folder/ bye" ![]() lftp -e "open user $FTP_USERNAME $FTP_PASSWORD mirror -X. Now that we have everything that is required, we can add a build phase with just one step: sync (or mirror) a local directory with the remote FTP server: build : I’ll do this in the before_script section: before_script : So if we want to use lftp, we have to install it ourselves. This is a barebones image, without much software installed. There are a few who have lftp pre-installed but in this case, I’m just going take a plain Ubuntu LTS image. You can pretty much pick any Docker image you’d like as your basis. This file tells GitLab what Docker image it should use and what steps to go through. gitlab-ci.yml file in the root directory of your project. To start using GitLab CI you have to create a. ![]() It is, however, a bit tricky to configure and get the hang of it. To handle that I’ve been using lftp, an open source utility that can upload files over various network protocols such as FTP, SFTP, HTTP, fish and even torrents. A few older projects still require deployment to a shared web hosting provider using FTP or SFTP. ![]() The main purpose is to run unit tests on my code and to deploy it to various services. Lately, I’ve been using GitLab CI more and more to replace my Jenkins server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |