1 parent
685e8162ea
commit
997b258d17
1 file changed
+23
+23
@@ -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
|
||||
Reference in new issue
Block a user