Skip to content

Commit

Permalink
Add no-cache headers to summary.jsonl
Browse files Browse the repository at this point in the history
  • Loading branch information
EarthlingDavey committed Oct 25, 2024
1 parent fbe820e commit c3a037a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy/config/init/s3-push-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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"

}
Expand Down

0 comments on commit c3a037a

Please sign in to comment.