reworked the b2-ul logic a bit
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
40192894d8
commit
d20528559b
12
.drone.yml
12
.drone.yml
|
@ -112,21 +112,17 @@ steps:
|
|||
environment:
|
||||
B2_ACCOUNT:
|
||||
from_secret: b2_account
|
||||
B2_BUCKET_ID:
|
||||
from_secret: b2_bucketId
|
||||
B2_TOKEN:
|
||||
from_secret: b2_token
|
||||
B2_KEY_ID:
|
||||
from_secret: b2_keyId
|
||||
from_secret: B2_KEY_ID
|
||||
B2_KEY:
|
||||
from_secret: b2_key
|
||||
from_secret: B2_KEY
|
||||
|
||||
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_BUCKET_ID" "$B2_TOKEN"
|
||||
- ./b2-ul_me "/run/cache/archives/$(ls /run/cache/archives | tail -1)" "application/zstd" "B2$KEY_ID" "$B2_KEY" "$B2_BUCKET_ID" "$B2_TOKEN"
|
||||
- ./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"
|
||||
# - export FILE_TO_UPLOAD=/run/cache/archives/$(ls /run/cache/archives | head -1)
|
||||
# - export MIME_TYPE=text/plain
|
||||
# - export SHA1_OF_FILE=$(openssl dgst -sha1 $FILE_TO_UPLOAD | awk '{print $2;}')
|
||||
|
|
Loading…
Reference in New Issue