{"id":18418600,"url":"https://github.com/bsm/drone-s3-cache","last_synced_at":"2025-04-07T13:31:21.961Z","repository":{"id":57609263,"uuid":"83696571","full_name":"bsm/drone-s3-cache","owner":"bsm","description":null,"archived":false,"fork":false,"pushed_at":"2017-03-02T16:45:59.000Z","size":11,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-22T19:02:46.264Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bsm.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-03-02T15:59:21.000Z","updated_at":"2023-10-06T10:46:07.000Z","dependencies_parsed_at":"2022-08-27T21:52:57.892Z","dependency_job_id":null,"html_url":"https://github.com/bsm/drone-s3-cache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsm%2Fdrone-s3-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsm%2Fdrone-s3-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsm%2Fdrone-s3-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsm%2Fdrone-s3-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bsm","download_url":"https://codeload.github.com/bsm/drone-s3-cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247661664,"owners_count":20975095,"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":[],"created_at":"2024-11-06T04:14:07.216Z","updated_at":"2025-04-07T13:31:21.578Z","avatar_url":"https://github.com/bsm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# drone-s3-cache\n\n[![Go Doc](https://godoc.org/github.com/bsm/drone-s3-cache?status.svg)](http://godoc.org/github.com/bsm/drone-s3-cache)\n\nDrone plugin for caching artifacts to a S3 bucket. 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 plugins/s3-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-s3-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_BUCKET=\u003cbucket\u003e \\\n  -e AWS_ACCESS_KEY_ID=\u003ctoken\u003e \\\n  -e AWS_SECRET_ACCESS_KEY=\u003csecret\u003e \\\n  plugins/s3-cache\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsm%2Fdrone-s3-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbsm%2Fdrone-s3-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsm%2Fdrone-s3-cache/lists"}