An open API service indexing awesome lists of open source software.

https://github.com/jrobinsonc/docker-ftpdeploy

Docker image to deploy files using FTP.
https://github.com/jrobinsonc/docker-ftpdeploy

deployment docker ftp

Last synced: 2 months ago
JSON representation

Docker image to deploy files using FTP.

Awesome Lists containing this project

README

          

# Docker FTP Deploy

Docker image to help with continuous deployment when only FTP can be used.

**How does it work, and why is it different from other FTP Docker images?**
Very simple: this image will only upload changed files instead of uploading the whole directory, as other Docker images do.

It uses [Git FTP](https://github.com/git-ftp/git-ftp) behind the scenes, which basically does this:
> It keeps track of the uploaded files by storing the commit id in a log file on the server. It uses Git to determine which local files have changed.

## Usage

```shell
image: jrobinsonc/ftpdeploy

pipelines:
default:
- step:
name: Deploy
#trigger: manual
deployment: production
script:
- git ftp push -v --syncroot 'dist' --remote-root '$FTP_PATH' -u '$FTP_USER' -p '$FTP_PASS' '$FTP_HOST'
```

⚠️ Remember that the first time you must use `git ftp init` to upload all the files or `git ftp catchup` if the server has already the files:

```shell
git ftp init --syncroot 'dist' --remote-root '$FTP_PATH' -u '$FTP_USER' -p '$FTP_PASS' '$FTP_HOST'
```

For more details about *GIT-FTP*, visit:

## License

Released under the [MIT license](https://raw.githubusercontent.com/jrobinsonc/docker-ftpdeploy/master/LICENSE).