Disable optional AWS checksums for Garage uploads
This commit is contained in:
parent
640d4693ac
commit
b06244e88c
2 changed files with 4 additions and 0 deletions
|
|
@ -24,6 +24,8 @@ fi
|
||||||
|
|
||||||
export AWS_DEFAULT_REGION="${BURROW_GARAGE_REGION:-garage}"
|
export AWS_DEFAULT_REGION="${BURROW_GARAGE_REGION:-garage}"
|
||||||
export AWS_EC2_METADATA_DISABLED=true
|
export AWS_EC2_METADATA_DISABLED=true
|
||||||
|
export AWS_REQUEST_CHECKSUM_CALCULATION="${AWS_REQUEST_CHECKSUM_CALCULATION:-when_required}"
|
||||||
|
export AWS_RESPONSE_CHECKSUM_VALIDATION="${AWS_RESPONSE_CHECKSUM_VALIDATION:-when_required}"
|
||||||
|
|
||||||
requested_releases=0
|
requested_releases=0
|
||||||
requested_packages=0
|
requested_packages=0
|
||||||
|
|
|
||||||
|
|
@ -27,5 +27,7 @@ destination="s3://${bucket}/builds/${BUILD_NUMBER}"
|
||||||
|
|
||||||
export AWS_DEFAULT_REGION="$region"
|
export AWS_DEFAULT_REGION="$region"
|
||||||
export AWS_EC2_METADATA_DISABLED=true
|
export AWS_EC2_METADATA_DISABLED=true
|
||||||
|
export AWS_REQUEST_CHECKSUM_CALCULATION="${AWS_REQUEST_CHECKSUM_CALCULATION:-when_required}"
|
||||||
|
export AWS_RESPONSE_CHECKSUM_VALIDATION="${AWS_RESPONSE_CHECKSUM_VALIDATION:-when_required}"
|
||||||
|
|
||||||
aws --endpoint-url "$BURROW_GARAGE_ENDPOINT" s3 sync "$source_dir" "$destination" --no-progress
|
aws --endpoint-url "$BURROW_GARAGE_ENDPOINT" s3 sync "$source_dir" "$destination" --no-progress
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue