mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-07 13:32:55 +02:00
Fix upload target location and path
This commit is contained in:
parent
0f1c5f895f
commit
2ed37d0c47
1 changed files with 2 additions and 2 deletions
|
@ -10,14 +10,14 @@ def main():
|
|||
bucket_name = os.environ['UPLOAD_BUCKET']
|
||||
upload_prefix = os.environ['UPLOAD_PREFIX']
|
||||
release_number = os.environ['RELEASE_NUMBER']
|
||||
full_prefix = upload_prefix + '/' + release_number[0:-2] + '/' + release_number
|
||||
full_prefix = upload_prefix + '/' + release_number
|
||||
S3 = boto3.client('s3')
|
||||
path = os.path.join(os.getcwd(), os.environ['ARTIFACT_PATTERN'])
|
||||
files = glob.glob(path, recursive=False)
|
||||
for archiveFile in files:
|
||||
filePath, fileName = os.path.split(archiveFile)
|
||||
S3.upload_file(os.path.join(filePath, fileName), bucket_name, full_prefix + '/' + fileName)
|
||||
print("Uploaded Artifact to S3: https://{}.s3-us-west-2.amazonaws.com/{}/{}".format(bucket_name, full_prefix, fileName))
|
||||
print("Uploaded Artifact to S3: https://{}.s3-eu-west-3.amazonaws.com/{}/{}".format(bucket_name, full_prefix, fileName))
|
||||
print("Finished")
|
||||
|
||||
main()
|
||||
|
|
Loading…
Reference in a new issue