{"id":15318425,"url":"https://github.com/appleboy/drone-sftp-cache","last_synced_at":"2025-04-14T23:33:26.307Z","repository":{"id":57528327,"uuid":"58109435","full_name":"appleboy/drone-sftp-cache","owner":"appleboy","description":"Drone plugin for caching artifacts to a central server using sftp","archived":false,"fork":false,"pushed_at":"2017-10-05T05:43:49.000Z","size":445,"stargazers_count":14,"open_issues_count":5,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T08:31:08.438Z","etag":null,"topics":["docker","drone","drone-plugin","sftp"],"latest_commit_sha":null,"homepage":"","language":"Go","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/appleboy.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":"2016-05-05T06:27:34.000Z","updated_at":"2024-09-04T18:59:27.000Z","dependencies_parsed_at":"2022-08-30T11:50:31.362Z","dependency_job_id":null,"html_url":"https://github.com/appleboy/drone-sftp-cache","commit_stats":null,"previous_names":["drone-plugins/drone-sftp-cache"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdrone-sftp-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdrone-sftp-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdrone-sftp-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdrone-sftp-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appleboy","download_url":"https://codeload.github.com/appleboy/drone-sftp-cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248925165,"owners_count":21184209,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker","drone","drone-plugin","sftp"],"created_at":"2024-10-01T09:00:01.489Z","updated_at":"2025-04-14T23:33:26.286Z","avatar_url":"https://github.com/appleboy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# drone-sftp-cache\n\n[![GoDoc](https://godoc.org/github.com/appleboy/drone-sftp-cache?status.svg)](https://godoc.org/github.com/appleboy/drone-sftp-cache) [![Build Status](http://drone.wu-boy.com/api/badges/appleboy/drone-sftp-cache/status.svg)](http://drone.wu-boy.com/appleboy/drone-sftp-cache) [![codecov](https://codecov.io/gh/appleboy/drone-sftp-cache/branch/master/graph/badge.svg)](https://codecov.io/gh/appleboy/drone-sftp-cache) [![Go Report Card](https://goreportcard.com/badge/github.com/appleboy/drone-sftp-cache)](https://goreportcard.com/report/github.com/appleboy/drone-sftp-cache) [![Docker Pulls](https://img.shields.io/docker/pulls/appleboy/drone-sftp-cache.svg)](https://hub.docker.com/r/appleboy/drone-sftp-cache/) [![](https://images.microbadger.com/badges/image/appleboy/drone-sftp-cache.svg)](https://microbadger.com/images/appleboy/drone-sftp-cache \"Get your own image badge on microbadger.com\")\n\nDrone plugin for caching artifacts to a central server using rsync. For the\nusage information and a listing of the available options please take a look at\n[the docs](DOCS.md).\n\n## Build\n\nBuild the binary with the following commands:\n\n```\ngo build\ngo test\n```\n\n## Docker\n\nBuild the docker image with the following commands:\n\n```\nCGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo\ndocker build --rm=true -t appleboy/drone-sftp-cache .\n```\n\nPlease note incorrectly building the image for the correct x64 linux and with\nGCO disabled will result in an error when running the Docker image:\n\n```\ndocker: Error response from daemon: Container command\n'/bin/drone-sftp-cache' not found or does not exist..\n```\n\n## Usage\n\nExecute from the working directory:\n\n```\ndocker run --rm \\\n  -e DRONE_REPO=octocat/hello-world \\\n  -e DRONE_REPO_BRANCH=master \\\n  -e DRONE_COMMIT_BRANCH=master \\\n  -e PLUGIN_MOUNT=node_modules \\\n  -e PLUGIN_RESTORE=false \\\n  -e PLUGIN_REBUILD=true \\\n  -e PLUGIN_IGNORE_BRANCH=false \\\n  -e SFTP_CACHE_SERVER=1.2.3.4 \\\n  -e SFTP_CACHE_PORT=22 \\\n  -e SFTP_CACHE_PATH=/root/cache \\\n  -e SFTP_CACHE_USERNAME=root \\\n  -e SFTP_CACHE_PRIVATE_KEY=\"$(cat ~/.ssh/id_rsa)\" \\\n  appleboy/drone-sftp-cache\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleboy%2Fdrone-sftp-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappleboy%2Fdrone-sftp-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleboy%2Fdrone-sftp-cache/lists"}