Commit Graph

22 Commits

Author SHA1 Message Date
Kris Leech 112a5ae990 Update README.md
This plugin works in Drone 0.7
2017-08-15 17:04:40 +01:00
Michael de Wit f75012053f Merge pull request #9 from Esfahan/feature/add_confirm_existence_dir_before_remove
Confirm the existence of the cache directory before purging expired files and folders
2017-07-12 14:56:26 +02:00
Esfahan c1619f7e43 confirms the existence of the cache directory before removing the old directory. 2017-07-12 13:36:08 +09:00
Michael de Wit d0637d0fba Add TTL feature for cached files and folders 2017-07-03 09:25:05 +02:00
Michael de Wit 65ee2c6d06 Reflect the ability to cache files in DOCS.md 2017-06-29 10:23:33 +02:00
Michael de Wit 5482d11ca4 Add the ability to mount and cache files (fixes #8) and improve logging when [CLEAR CACHE] is used 2017-06-29 10:21:41 +02:00
Michael de Wit 9035e441b1 Merge pull request #7 from macropin/master
Fix selinux compatibility: do not try to copy selinux ACLS
2017-02-23 08:52:21 +01:00
Andrew Cutler b7d017a5a4 Fix selinux compatibility: do not try to copy selinux ACLS 2017-02-21 15:07:29 +11:00
Michael de Wit 54f2b742e5 Merge pull request #6 from jhasse/patch-1
Only remove cache folder of the current job
2017-02-06 11:32:03 +01:00
Jan Niklas Hasse 44ebf1e7b4 Only remove cache folder of the current job
Fixes #5
2017-02-06 09:53:44 +01:00
Michael de Wit fb1d0be64d Fix inconsistent exit code when mounted folder does not exist. Fixes #4 2017-02-03 15:06:29 +01:00
Michael de Wit 4ce79429c6 Add [NO CACHE] and [CLEAR CACHE] to commit message options to control plugin behavior, use separate cache for matrix jobs. Fixes #3 2017-02-01 14:42:55 +01:00
Michael de Wit 53828b706c add a Docker Hub badge to README.md 2016-12-13 17:04:10 +01:00
Michael de Wit 1cb646f1ec Merge pull request #2 from adrienverge/fix/rsync-delete
Use `rsync -aHAX --delete`
2016-12-13 16:53:35 +01:00
Adrien Vergé 9585fa84d1 Use rsync -aHAX --delete
When creating/restoring cache, the user wants the created files and dir
to *replace* existing ones. This also implies deleting leftover files.

To be clearer, let's take an example with a JS / TypeScript project:
- A project needs to install some "typings" named `footypes` in
  `node_modules`.
- `footypes` becomes deprecated and should be replaced by `footypes2`.
  The developer then replaces `footypes` with `footypes2` in his
  `package.json`.
- On next builds, old cache is restored (including
  `node_modules/footypes`). Then `footypes2` is also installed in
  `node_modules`.
- Builds now fail because there are conflicting typings for library
  `foo`: both `footypes` and `footypes2` are present.

With the `--delete` flag added to `rsync`, when creating new caches,
files that are not present in source dir are deleted from target dir.
2016-12-13 15:20:57 +01:00
Michael de Wit 93158f84df reduce the number of layers 2016-12-12 11:20:44 +01:00
Michael de Wit 46b365959f Merge pull request #1 from marcusramberg/fix_permissions
Make sure plugin is executable
2016-12-12 11:16:54 +01:00
Marcus Ramberg ced86f686c Make sure plugin is executable 2016-12-12 10:50:07 +01:00
Michael de Wit 28d97bd1e8 update link in README and image name in DOCS 2016-12-07 12:04:45 +01:00
Michael de Wit 9642e4f08e add a link to DOCS from README 2016-12-07 11:47:24 +01:00
Michael de Wit 13f372a63c add project 2016-12-07 11:45:05 +01:00
Michael de Wit 74f6b385ca Initial commit 2016-12-07 11:38:56 +01:00