drone: use docker image caching
the build was successful Details

master
Andy 6 years ago
parent 9ca53ee24b
commit 3cae054784
Signed by: arno
GPG Key ID: 9076D5E6B31AE99C

@ -6,22 +6,39 @@
# - master
pipeline:
restore_cache:
image: drillster/drone-volume-cache:latest
restore: true
mount:
- /drone/docker
# volumes:
# - /tmp/drone-cache:/cache
publish:
image: plugins/docker:17.12
auto_tag: true
auto_tag_suffix: linux-amd64
repo: andrey01/mps-youtube
# tags:
# - latest
# - 1
# - 1.1
tags:
- latest
- ${DRONE_COMMIT_SHA}
# group: docker
# dockerfile: Dockerfile
secrets: [ docker_username, docker_password ]
secrets:
- docker_username
- docker_password
storage_path: /drone/docker
use_cache: true
when:
event: [push, tag]
branch: master
rebuild_cache:
image: drillster/drone-volume-cache:latest
rebuild: true
mount:
- /drone/docker
# volumes:
# - /tmp/drone-cache:/cache
notify:
image: drillster/drone-email:latest
from: Drone CI <noreply@nixaid.com>

Loading…
Cancel
Save