drone add cache
continuous-integration/drone/push Build is passing

This commit is contained in:
jianxin committed 2024-01-18 00:12:50 +08:00
1 parent 685e8162ea
commit 997b258d17
1 file changed
+23
+23
View File
@@ -4,6 +4,16 @@ type: docker
name: default
steps:
- name: restore-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
restore: true
mount:
- ~/.cache/pip
- name: build
image: plugins/docker:latest
volumes:
@@ -23,6 +33,15 @@ steps:
mirror: https://5c492fmo.mirror.aliyuncs.com
dockerfile: ./Dockerfile
- name: rebuild-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
rebuild: true
mount:
- ~/.cache/pip
- name: scp
image: appleboy/drone-scp
@@ -86,3 +105,7 @@ volumes:
- name: dockersock
host:
path: /var/run/docker.sock
- name: cache
host:
path: /tmp/cache