mirror of
https://github.com/linuxserver/docker-ci.git
synced 2026-02-05 03:01:45 +08:00
adding cache control headers to the object storage upload so the badges will not be cached by github
This commit is contained in:
parent
bfbfbb4889
commit
e2575ed2a2
4
ci/ci.py
4
ci/ci.py
@ -297,12 +297,12 @@ def report_upload():
|
||||
outdir + filename,
|
||||
bucket,
|
||||
destination_dir + filename,
|
||||
ExtraArgs={'ContentType': CT,'ACL': "public-read"})
|
||||
ExtraArgs={'ContentType': CT,'ACL': "public-read",'CacheControl': 'no-cache'})
|
||||
spaces.upload_file(
|
||||
outdir + filename,
|
||||
bucket,
|
||||
latest_dir + filename,
|
||||
ExtraArgs={'ContentType': CT,'ACL': "public-read"})
|
||||
ExtraArgs={'ContentType': CT,'ACL': "public-read",'CacheControl': 'no-cache'})
|
||||
except Exception as error:
|
||||
core_fail('Upload Error ' + str(error))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user