add cache folder.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
93cd05d17d
commit
40b14937c1
14
.drone.yml
14
.drone.yml
|
@ -1,4 +1,11 @@
|
|||
pipeline:
|
||||
# restore the cache from an sftp server
|
||||
restore_cache:
|
||||
image: appleboy/drone-sftp-cache
|
||||
restore: true
|
||||
mount: [ .glide, vendor ]
|
||||
ignore_branch: true
|
||||
|
||||
build:
|
||||
image: appleboy/golang-testing:${GO_VERSION}
|
||||
environment:
|
||||
|
@ -14,6 +21,13 @@ pipeline:
|
|||
when:
|
||||
status: [ success, failure ]
|
||||
|
||||
# rebuild the cache on the sftp server
|
||||
rebuild_cache:
|
||||
image: appleboy/drone-sftp-cache
|
||||
rebuild: true
|
||||
mount: [ .glide, vendor ]
|
||||
ignore_branch: true
|
||||
|
||||
services:
|
||||
redis:
|
||||
image: redis:alpine
|
||||
|
|
|
@ -1 +1 @@
|
|||
eyJhbGciOiJIUzI1NiJ9.cGlwZWxpbmU6CiAgYnVpbGQ6CiAgICBpbWFnZTogYXBwbGVib3kvZ29sYW5nLXRlc3Rpbmc6JHtHT19WRVJTSU9OfQogICAgZW52aXJvbm1lbnQ6CiAgICAgIC0gR09QQVRIPS9nbwogICAgY29tbWFuZHM6CiAgICAgIC0gbWFrZSBpbnN0YWxsCiAgICAgIC0gY292ZXJhZ2UgYWxsCgogIGxpbmU6CiAgICBpbWFnZTogYXBwbGVib3kvZHJvbmUtbGluZQogICAgcHVsbDogdHJ1ZQogICAgdG86IHUzNTk2NTBmOTE5NDI3YjUyMjkzMzBjNzIwNWM0N2VlNAogICAgd2hlbjoKICAgICAgc3RhdHVzOiBbIHN1Y2Nlc3MsIGZhaWx1cmUgXQoKc2VydmljZXM6CiAgcmVkaXM6CiAgICBpbWFnZTogcmVkaXM6YWxwaW5lCgp3b3Jrc3BhY2U6CiAgcGF0aDogL2dvL3NyYy9naXRodWIuY29tL2FwcGxlYm95L2dvcnVzaAoKbWF0cml4OgogIE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