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.
- Host: GitHub
- URL: https://github.com/jrobinsonc/docker-ftpdeploy
- Owner: jrobinsonc
- License: mit
- Created: 2018-06-11T03:01:56.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-07-04T00:04:54.000Z (over 4 years ago)
- Last Synced: 2023-03-27T14:35:38.432Z (about 3 years ago)
- Topics: deployment, docker, ftp
- Language: Dockerfile
- Homepage:
- Size: 17.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).