fixed a typo + general cleanup
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
d20528559b
commit
6ba1454846
24
.drone.yml
24
.drone.yml
|
@ -12,10 +12,6 @@ steps:
|
|||
volumes:
|
||||
- name: shm
|
||||
path: /dev/shm
|
||||
- name: results
|
||||
path: /results
|
||||
- name: archives
|
||||
path: /archives
|
||||
commands:
|
||||
- uname -r
|
||||
- python --version
|
||||
|
@ -29,10 +25,6 @@ steps:
|
|||
volumes:
|
||||
- name: shm
|
||||
path: /dev/shm
|
||||
- name: results
|
||||
path: /results
|
||||
- name: archives
|
||||
path: /archives
|
||||
commands:
|
||||
- mkdir -pv results/${DRONE_STAGE_NAME}/${DRONE_STEP_NAME}
|
||||
- robot -T -d results/${DRONE_STAGE_NAME}/${DRONE_STEP_NAME} test000.robot
|
||||
|
@ -49,10 +41,6 @@ steps:
|
|||
volumes:
|
||||
- name: shm
|
||||
path: /dev/shm
|
||||
- name: results
|
||||
path: /results
|
||||
- name: archives
|
||||
path: /archives
|
||||
- name: cache
|
||||
path: /run/cache
|
||||
commands:
|
||||
|
@ -122,17 +110,7 @@ steps:
|
|||
- 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"
|
||||
# - 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;}')
|
||||
# - export apiUrl=$(curl -s 'https://api.backblazeb2.com/b2api/v2/b2_authorize_account' -u "$B2_KEY_ID:$B2_KEY" | python -c "import sys, json; print (json.load(sys.stdin)['apiUrl'])")
|
||||
# - export UPLOAD_URL=$(curl -s -H 'Authorization:$B2_TOKEN' -d '{"bucketId":"$B2_BUCKET_ID"}' $apiUrl/b2api/v2/b2_get_upload_url | python -c "import sys, json; print (json.load(sys.stdin)['uploadUrl'])")
|
||||
# - curl -s -H "Authorization:$B2_TOKEN" -H "X-Bz-File-Name:$FILE_TO_UPLOAD" -H "Content-Type:$MIME_TYPE" -H "X-Bz-Content-Sha1:$SHA1_OF_FILE" -H "X-Bz-Info-Author:${DRONE_COMMIT_AUTHOR}" --data-binary "@$FILE_TO_UPLOAD" $UPLOAD_URL
|
||||
# - export FILE_TO_UPLOAD=/run/cache/archives/$(ls /run/cache/archives | tail -1)
|
||||
# - export MIME_TYPE=application/zstd
|
||||
# - export SHA1_OF_FILE=$(openssl dgst -sha1 $FILE_TO_UPLOAD | awk '{print $2;}')
|
||||
# - curl -H "Authorization:$B2_TOKEN" -H "X-Bz-File-Name:$FILE_TO_UPLOAD" -H "Content-Type:$MIME_TYPE" -H "X-Bz-Content-Sha1:$SHA1_OF_FILE" -H "X-Bz-Info-Author:${DRONE_COMMIT_AUTHOR}" --data-binary "@$FILE_TO_UPLOAD" $UPLOAD_URL
|
||||
- ./b2-ul_me "/run/cache/archives/$(ls /run/cache/archives | tail -1)" "application/zstd" "$B2_KEY_ID" "$B2_KEY"
|
||||
|
||||
volumes:
|
||||
- name: cache
|
||||
|
|
Loading…
Reference in New Issue