aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.drone.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index 5934efc..1b4f607 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -18,6 +18,23 @@ steps:
- yarn run lint
- yarn run test:coverage
- curl --proto '=https' --tlsv1.2 -sSf https://cov.submelon.dev/sh | sh
+- name: build cache
+ image: plugins/docker
+ settings:
+ repo: "${DRONE_REPO}"
+ tags:
+ - cache
+ cache_from: "${DRONE_REPO}:cache"
+ target: dependencies
+ username:
+ from_secret: docker_username
+ password:
+ from_secret: docker_password
+ when:
+ event:
+ exclude:
+ - tag
+ - pull_request
- name: publish (no tag)
image: plugins/docker
settings:
@@ -25,6 +42,7 @@ steps:
tags:
- "${DRONE_COMMIT_SHA}"
- latest
+ cache_from: "${DRONE_REPO}:cache"
target: release
username:
from_secret: docker_username