From f90bc35309b3f40c64a97136ba982932f16ec917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Bence?= Date: Fri, 8 May 2020 23:21:57 +0200 Subject: [PATCH] use drone cache --- .drone.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.drone.yml b/.drone.yml index ca9d502..1d2e965 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,6 +3,20 @@ type: docker name: default steps: +- name: restore-cache-with-filesystem + image: meltwater/drone-cache + settings: + backend: "filesystem" + restore: true + cache_key: "{{ .Repo.Name }}" + archive_format: "gzip" + filesystem_cache_root: "/tmp/cache" + mount: + - '.pipcache' + volumes: + - name: cache + path: /tmp/cache + - name: static_analysis image: python:3 commands: @@ -34,6 +48,21 @@ steps: - cd docs - make html +- name: rebuild-cache-with-filesystem + image: meltwater/drone-cache + pull: true + settings: + backend: "filesystem" + rebuild: true + cache_key: "{{ .Repo.Name }}" + archive_format: "gzip" + filesystem_cache_root: "/tmp/cache" + mount: + - '.pipcache' + volumes: + - name: cache + path: /tmp/cache + - name: build_docs image: docker:stable-dind volumes: @@ -73,3 +102,6 @@ services: volumes: - name: dockersock temp: {} +- name: cache + host: + path: "/tmp/cache"