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:
|
volumes:
|
||||||
- name: shm
|
- name: shm
|
||||||
path: /dev/shm
|
path: /dev/shm
|
||||||
- name: cache
|
|
||||||
path: /run/cache
|
|
||||||
commands:
|
commands:
|
||||||
- mkdir -pv results/${DRONE_STAGE_NAME}/test000
|
- mkdir -pv results/${DRONE_STAGE_NAME}/test000
|
||||||
- robot -T -d results/${DRONE_STAGE_NAME}/test000 test000.robot
|
- robot -T -d results/${DRONE_STAGE_NAME}/test000 test000.robot
|
||||||
- cp -vR results /run/cache
|
|
||||||
when:
|
when:
|
||||||
status:
|
status:
|
||||||
- success
|
- success
|
||||||
@ -38,6 +35,23 @@ steps:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- reveal-env
|
- 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:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
host:
|
host:
|
||||||
@ -78,17 +92,14 @@ steps:
|
|||||||
- name: cache
|
- name: cache
|
||||||
path: /run/cache
|
path: /run/cache
|
||||||
commands:
|
commands:
|
||||||
- ls -la . ; pwd
|
|
||||||
- mkdir -pv archives
|
- 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 -
|
- 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
|
- 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
|
- 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
|
- rm archives/*zstd
|
||||||
- ls -la archives
|
|
||||||
- mkdir -pv /run/cache
|
|
||||||
- cp -vR archives /run/cache
|
- cp -vR archives /run/cache
|
||||||
- rm -rfv /run/cache/results
|
- rm -r /run/cache/results-${DRONE_COMMIT_SHA}
|
||||||
when:
|
when:
|
||||||
status:
|
status:
|
||||||
- success
|
- success
|
||||||
|
Loading…
Reference in New Issue
Block a user