mirror of
https://github.com/servo/servo.git
synced 2025-06-26 10:04:33 +01:00
Only upload latest hash
This commit is contained in:
parent
f1e37e2dd2
commit
6faccf6c3c
1 changed files with 1 additions and 7 deletions
|
@ -642,22 +642,16 @@ class PackageCommands(CommandBase):
|
|||
sha256_digest.update(data)
|
||||
package_hash = sha256_digest.hexdigest()
|
||||
package_hash_fileobj = io.BytesIO(package_hash)
|
||||
package_hash_upload_key = '{}/{}.sha256'.format(nightly_dir, filename)
|
||||
latest_hash_upload_key = '{}/servo-latest{}.sha256'.format(nightly_dir, extension)
|
||||
|
||||
s3.upload_file(package, BUCKET, package_upload_key)
|
||||
s3.upload_fileobj(package_hash_fileobj, BUCKET, package_hash_upload_key)
|
||||
|
||||
copy_source = {
|
||||
'Bucket': BUCKET,
|
||||
'Key': package_upload_key,
|
||||
}
|
||||
copy_source_hash = {
|
||||
'Bucket': BUCKET,
|
||||
'Key': package_hash_upload_key,
|
||||
}
|
||||
s3.copy(copy_source, BUCKET, latest_upload_key)
|
||||
s3.copy(copy_source_hash, BUCKET, latest_hash_upload_key)
|
||||
s3.upload_fileobj(package_hash_fileobj, BUCKET, latest_hash_upload_key)
|
||||
|
||||
def update_maven(directory):
|
||||
(aws_access_key, aws_secret_access_key) = get_s3_secret()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue