From c3a037a5be9bf44d5d02704baba5a812c461c362 Mon Sep 17 00:00:00 2001 From: EarthlingDavey <15802017+EarthlingDavey@users.noreply.github.com> Date: Fri, 25 Oct 2024 18:13:35 +0100 Subject: [PATCH] Add no-cache headers to summary.jsonl --- deploy/config/init/s3-push-start.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/config/init/s3-push-start.sh b/deploy/config/init/s3-push-start.sh index d0b803745..91b0f0985 100644 --- a/deploy/config/init/s3-push-start.sh +++ b/deploy/config/init/s3-push-start.sh @@ -116,7 +116,7 @@ echo "Appending manifest to summary..." echo '{"timestamp": '$TIMESTAMP', "build": "'$IMAGE_TAG'"}' >> ./summary.jsonl echo "Copying summary to S3..." -aws $AWS_CLI_ARGS s3 cp ./summary.jsonl $S3_SUMMARY +aws $AWS_CLI_ARGS s3 cp --cache-control 'no-cache' ./summary.jsonl $S3_SUMMARY catch_error $? "aws s3 cp ./summary.jsonl $S3_SUMMARY" @@ -147,7 +147,7 @@ delete_build () { mv ./summary-tmp.jsonl ./summary.jsonl # 🅑 Copy the revised summary to S3 - aws $AWS_CLI_ARGS s3 cp ./summary.jsonl $S3_SUMMARY + aws $AWS_CLI_ARGS s3 cp --cache-control 'no-cache' ./summary.jsonl $S3_SUMMARY catch_error $? "aws s3 cp ./summary.jsonl $S3_SUMMARY" # Next, delete the build folder from the S3 bucket. @@ -223,7 +223,7 @@ flag_builds () { # 🅒 Copy the updated file to S3 echo "Copying summary (with builds flagged for deletion) to S3..." - aws $AWS_CLI_ARGS s3 cp ./summary.jsonl $S3_SUMMARY + aws $AWS_CLI_ARGS s3 cp --cache-control 'no-cache' ./summary.jsonl $S3_SUMMARY catch_error $? "aws s3 cp ./summary.jsonl $S3_SUMMARY" }