improved file matching logic
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2020-05-10 20:26:40 +02:00
parent 6ba1454846
commit fb1424d949
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -48,7 +48,7 @@ steps:
- 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 -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
- 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
@ -108,9 +108,9 @@ steps:
commands:
- ls -la /run/cache
- curl -sO https://git.dotya.ml/wanderer/dotfiles/raw/branch/master/bin/b2-ul_me
- chmod -v +x b2-ul_me
- ./b2-ul_me "/run/cache/archives/$(ls /run/cache/archives | head -1)" "text/plain" "$B2_KEY_ID" "$B2_KEY"
- ./b2-ul_me "/run/cache/archives/$(ls /run/cache/archives | tail -1)" "application/zstd" "$B2_KEY_ID" "$B2_KEY"
- chmod +x b2-ul_me
- ./b2-ul_me "/run/cache/archives/results-${DRONE_COMMIT_SHA:0:7}.tar.zstd.gpg-SHA512SUM" 'text/plain' "$B2_KEY_ID" "$B2_KEY"
- ./b2-ul_me "/run/cache/archives/results-${DRONE_COMMIT_SHA:0:7}.tar.zstd.gpg" 'application/zstd' "$B2_KEY_ID" "$B2_KEY"
volumes:
- name: cache