Skip to content

Commit 9356c76

Browse files
author
Jessie Frazelle
committed
Merge pull request moby#14064 from jfrazelle/no-cache-for-experimental
add no cache for experimental builds bc cloudfront
2 parents 71f8ca3 + 0cc664f commit 9356c76

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hack/release.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,14 +282,16 @@ EOF
282282
s3cmd --acl-public put "bundles/$VERSION/ubuntu/gpg" "s3://$BUCKET/gpg"
283283

284284
local gpgFingerprint=36A1D7869245C8950F966E92D8576A8BA88D21E9
285+
local s3Headers=
285286
if [[ $BUCKET == test* ]]; then
286287
gpgFingerprint=740B314AE3941731B942C66ADF4FD13717AAD7D6
287288
elif [[ $BUCKET == experimental* ]]; then
288289
gpgFingerprint=E33FF7BF5C91D50A6F91FFFD4CC38D40F9A96B49
290+
s3Headers='--add-header=Cache-Control:no-cache'
289291
fi
290292

291293
# Upload repo
292-
s3cmd --acl-public sync "$APTDIR/" "s3://$BUCKET/ubuntu/"
294+
s3cmd --acl-public "$s3Headers" sync "$APTDIR/" "s3://$BUCKET/ubuntu/"
293295
cat <<EOF | write_to_s3 s3://$BUCKET/ubuntu/index
294296
# Check that HTTPS transport is available to APT
295297
if [ ! -e /usr/lib/apt/methods/https ]; then

0 commit comments

Comments
 (0)