added middle-step "copy-cache"
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b3ce9a268f
commit
e59371da9b
27
.drone.yml
27
.drone.yml
@ -25,12 +25,9 @@ steps:
|
||||
volumes:
|
||||
- name: shm
|
||||
path: /dev/shm
|
||||
- name: cache
|
||||
path: /run/cache
|
||||
commands:
|
||||
- mkdir -pv results/${DRONE_STAGE_NAME}/test000
|
||||
- robot -T -d results/${DRONE_STAGE_NAME}/test000 test000.robot
|
||||
- cp -vR results /run/cache
|
||||
when:
|
||||
status:
|
||||
- success
|
||||
@ -38,6 +35,23 @@ steps:
|
||||
depends_on:
|
||||
- reveal-env
|
||||
|
||||
- name: copy-cache
|
||||
pull: if-not-exists
|
||||
image: immawanderer/archlinux-rf:latest
|
||||
volumes:
|
||||
- name: shm
|
||||
path: /dev/shm
|
||||
- name: cache
|
||||
path: /run/cache
|
||||
commands:
|
||||
- cp -vR results /run/cache/results-${DRONE_COMMIT_SHA}
|
||||
when:
|
||||
status:
|
||||
- success
|
||||
- failure
|
||||
depends_on:
|
||||
- test000
|
||||
|
||||
volumes:
|
||||
- name: cache
|
||||
host:
|
||||
@ -78,17 +92,14 @@ steps:
|
||||
- name: cache
|
||||
path: /run/cache
|
||||
commands:
|
||||
- ls -la . ; pwd
|
||||
- mkdir -pv archives
|
||||
- tar cfv archives/results-${DRONE_COMMIT_SHA:0:7}.tar.zstd /run/cache/results --zstd
|
||||
- tar cfv archives/results-${DRONE_COMMIT_SHA:0:7}.tar.zstd /run/cache/results-${DRONE_COMMIT_SHA} --zstd
|
||||
- curl -sS https://dotya.ml/store/0x28bd2388.asc | gpg --quiet --import -
|
||||
- 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:0:7}.tar.zstd.gpg-SHA512SUM
|
||||
- rm archives/*zstd
|
||||
- ls -la archives
|
||||
- mkdir -pv /run/cache
|
||||
- cp -vR archives /run/cache
|
||||
- rm -rfv /run/cache/results
|
||||
- rm -r /run/cache/results-${DRONE_COMMIT_SHA}
|
||||
when:
|
||||
status:
|
||||
- success
|
||||
|
Loading…
Reference in New Issue
Block a user