{"id":42681608,"url":"https://github.com/cschlosser/drone-ftps","last_synced_at":"2026-01-29T11:53:30.839Z","repository":{"id":39740740,"uuid":"108244690","full_name":"cschlosser/drone-ftps","owner":"cschlosser","description":"Deploy to FTPS server from Drone CI build","archived":false,"fork":false,"pushed_at":"2022-12-22T00:42:23.000Z","size":45,"stargazers_count":20,"open_issues_count":4,"forks_count":15,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-12-22T07:53:42.604Z","etag":null,"topics":["drone","drone-plugin","ftps","hacktoberfest"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/cschlosser/drone-ftps/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cschlosser.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-25T08:55:06.000Z","updated_at":"2023-04-28T14:00:58.000Z","dependencies_parsed_at":"2022-08-28T06:35:22.416Z","dependency_job_id":null,"html_url":"https://github.com/cschlosser/drone-ftps","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cschlosser/drone-ftps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cschlosser%2Fdrone-ftps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cschlosser%2Fdrone-ftps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cschlosser%2Fdrone-ftps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cschlosser%2Fdrone-ftps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cschlosser","download_url":"https://codeload.github.com/cschlosser/drone-ftps/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cschlosser%2Fdrone-ftps/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28876862,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drone","drone-plugin","ftps","hacktoberfest"],"created_at":"2026-01-29T11:53:30.177Z","updated_at":"2026-01-29T11:53:30.824Z","avatar_url":"https://github.com/cschlosser.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deploy to FTP(S) server from Drone CI\n\n[![Docker Stars](https://badgen.net/docker/stars/cschlosser/drone-ftps)](https://hub.docker.com/r/cschlosser/drone-ftps/)\n[![Docker Pulls](https://badgen.net/docker/pulls/cschlosser/drone-ftps)](https://hub.docker.com/r/cschlosser/drone-ftps/)\n[![Docker Build](https://img.shields.io/docker/cloud/build/cschlosser/drone-ftps)](https://hub.docker.com/r/cschlosser/drone-ftps/)\n[![Docker Size](https://badgen.net/docker/size/cschlosser/drone-ftps)](https://hub.docker.com/r/cschlosser/drone-ftps/)\n\n## Usage\n\nYou have to set the username and password for your FTP server in the `FTP_USERNAME` and `FTP_PASSWORD` secret.\n\n## Required settings\n\n```yaml\nenvironment:\n    FTP_USERNAME:\n      from_secret: username\n    FTP_PASSWORD:\n      from_secret: password\n    PLUGIN_HOSTNAME: example.com:21\n```\n\n## Optional settings\n\n```yaml\nenvironment:\n    PLUGIN_DEST_DIR: /path/to/dest (default /)\n    PLUGIN_SRC_DIR: /path/to/dest (default ./)\n    PLUGIN_SECURE: true | false (default true)\n    PLUGIN_VERIFY: false\n    PLUGIN_EXCLUDE: (egrep like pattern matching)\n    PLUGIN_INCLUDE: (egrep like pattern matching)\n    PLUGIN_CHMOD: true | false (default true)\n    PLUGIN_CLEAN_DIR: true | false (default false)\n    PLUGIN_ONLY_NEWER: true | false (default false)\n    PLUGIN_AUTO_CONFIRM: true | false (default false)\n    PLUGIN_SSH_ACCEPT_RSA: true | false (default false)\n    PLUGIN_PRE_ACTION: string (default empty)\n    PLUGIN_POST_ACTION: string (default empty)\n    PLUGIN_DEBUG: true | false (default false)\n```\n### Pre/Post Action\nPre/Post Action can be used to move files/folders out of the way or execute additional commands on the server before and after the deployment process.  \nThe `PLUGIN_PRE_ACTION` is executed *before* the `PLUGIN_CLEAN_DIR` (if set).  \nThe `PLUGIN_POST_ACTION` is executed *after* the ftp \"mirror\" operation.  \n\nMultiple Actions can be set, they need to be divided by a semicolon `;` .  \n#### Example:\nThere is another project's folder (\"project2\") in a subfolder in the destination directory. We need to move this folder to a temporary location and restore it after the upload completed.\n```yaml\nPLUGIN_CLEAN_DIR: true\nPLUGIN_PRE_ACTION: mv /dest/project2 /temp/project2;\nPLUGIN_POST_ACTION: mv /temp/project2 /dest/project2;\n```\n\n### Transfer only newer files\nThe setting `PLUGIN_ONLY_NEWER: true` (only transfer newer files) does not mix well with the `PLUGIN_CLEAN_DIR: true` (clean destination directory before transfer).\n\nWhen setting `PLUGIN_ONLY_NEWER: true` parameter to true, make sure to _exclude_ any files/folders that are not present in the source directory, but should be kept on the server.  \n#### Example:\nSource folder does not contain an `.env` file, it exists on the remote server and should be kept.  \nAlso, we do not want to transfer the source's `.git` folder and `.gitignore` file:  \nSet `PLUGIN_ONLY_NEWER: true` and `PLUGIN_EXCLUDE: ^\\.git/$,^\\.gitignore$,^\\.env$` environment variables.\n\n## Full file example\n\n```yaml\nkind: pipeline\nname: default\n\nsteps:\n- name: master_build\n  image: cschlosser/drone-ftps\n  environment:\n    FTP_USERNAME:\n      from_secret: username\n    FTP_PASSWORD:\n      from_secret: password\n    PLUGIN_HOSTNAME: example.com:21\n\n    PLUGIN_SECURE: false\n    PLUGIN_VERIFY: false\n    PLUGIN_EXCLUDE: ^\\.git/$\n  when:\n    branch:\n    - master\n    event:\n    - push\n\n- name: develop_build\n  image: cschlosser/drone-ftps\n  environment:\n    FTP_USERNAME:\n      from_secret: username\n    FTP_PASSWORD:\n      from_secret: password\n    PLUGIN_HOSTNAME: example.com:21\n    PLUGIN_DEST_DIR: /develop\n    PLUGIN_SECURE: false\n    PLUGIN_VERIFY: false\n    PLUGIN_EXCLUDE: ^\\.git/$\n  when:\n    branch:\n    - develop\n    event:\n    - push\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcschlosser%2Fdrone-ftps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcschlosser%2Fdrone-ftps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcschlosser%2Fdrone-ftps/lists"}