This commit is contained in:
parent
af7a608487
commit
670e52eda3
17
.drone.yml
17
.drone.yml
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue