added persistent caching
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
surtur 2020-05-10 06:17:29 +02:00
parent af7a608487
commit 670e52eda3
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -53,15 +53,18 @@ steps:
path: /results
- name: archives
path: /archives
- name: cache
path: /run/cache
commands:
- ls -la .
- tar cfv archives/results-${DRONE_COMMIT_SHA:0:7}.tar.zstd results --zstd
- curl -sS https://dotya.ml/store/0x28bd2388.asc | gpg --quiet --import -
- gpg --quiet --trusted-key E860AB3CD0078D30E86CDA747B28D8DC28BD2388 || true
- gpg -eR 28bd2388 --trust-model always archives/results-${DRONE_COMMIT_SHA:0:7}.tar.zstd
- sha512sum archives/results-${DRONE_COMMIT_SHA:0:7}.tar.zstd.gpg > archives/results-${DRONE_COMMIT_SHA}.tar.zstd.gpg-SHA512SUM
- rm archives/*zstd
- ls -la archives
- mkdir -pv /run/cache
- cp -vR archives /run/cache
when:
status:
- success
@ -69,6 +72,11 @@ steps:
depends_on:
- test000
volumes:
- name: cache
host:
path: /run/cache
---
kind: pipeline
name: upload
@ -98,6 +106,9 @@ steps:
- name: b2
pull: always
image: techknowlogick/drone-b2:latest
volumes:
- name: cache
path: /run/cache
bucket: robot-test
account:
from_secret: b2_account
@ -107,6 +118,10 @@ steps:
target: results
strip_prefix: /archives/
volumes:
- name: cache
host:
path: /run/cache
---
kind: pipeline