rebuild cache right after the image was build

This commit is contained in:
Andy 2018-07-11 11:11:53 +02:00
parent 50ee81ae5b
commit f15e8489f9
Signed by: arno
GPG Key ID: 9076D5E6B31AE99C

View File

@ -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 <noreply@nixaid.com>