From f15e8489f9cf4a4351825caba12a1511dbb571fd Mon Sep 17 00:00:00 2001 From: Andrey Arapov Date: Wed, 11 Jul 2018 11:11:53 +0200 Subject: [PATCH] rebuild cache right after the image was build --- .drone.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index 163f4ca..aaec39a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -38,6 +38,18 @@ pipeline: event: [push, tag] branch: master + rebuild_cache: + image: drillster/drone-volume-cache:latest + rebuild: true + mount: + - /drone/docker + # Set the ``DRONE_VOLUME=/tmp/drone-cache:/cache`` drone-server variable, + # so you can benefit from the caching. + # Otherwise you will have to make this repository trusted in Drone and use + # the volumes as follows. + # volumes: + # - /tmp/drone-cache:/cache + # ca_cert comes from /srv/data/registry/certs/ca.crt claircheck: # image: jmccann/drone-clair:1 @@ -56,18 +68,6 @@ pipeline: USigh6FzqEPk2jiaV3t1wNtChRWRfupTKG6CD345 -----END CERTIFICATE----- - rebuild_cache: - image: drillster/drone-volume-cache:latest - rebuild: true - mount: - - /drone/docker - # Set the ``DRONE_VOLUME=/tmp/drone-cache:/cache`` drone-server variable, - # so you can benefit from the caching. - # Otherwise you will have to make this repository trusted in Drone and use - # the volumes as follows. - # volumes: - # - /tmp/drone-cache:/cache - notify: image: drillster/drone-email:latest from: Drone CI