From 099f118e3416f2f932c5238c04207dce26455bdc Mon Sep 17 00:00:00 2001 From: Jason Dellaluce Date: Thu, 19 Jan 2023 16:51:04 +0000 Subject: [PATCH] fix(scripts): invalidate all signatures at once Signed-off-by: Jason Dellaluce --- scripts/publish-deb | 2 +- scripts/publish-rpm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/publish-deb b/scripts/publish-deb index a7596010..b7c7f5cb 100755 --- a/scripts/publish-deb +++ b/scripts/publish-deb @@ -181,10 +181,10 @@ if [ "${sign_all}" ]; then echo "Syncing ${package}.asc to ${s3_bucket_repo}..." aws s3 cp ${tmp_repo_path}/${debSuite}/${package}.asc ${s3_bucket_repo}/${debSuite}/${package}.asc --acl public-read - aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${debSuite}/${package}.asc fi fi done + aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${debSuite}/*.asc sign_repo ${tmp_repo_path} ${debSuite} fi diff --git a/scripts/publish-rpm b/scripts/publish-rpm index 8d4c0b7b..7c4c4444 100755 --- a/scripts/publish-rpm +++ b/scripts/publish-rpm @@ -108,10 +108,10 @@ if [ "${sign_all}" ]; then echo "Syncing ${package}.asc to ${s3_bucket_repo}..." aws s3 cp ${tmp_repo_path}/${package}.asc ${s3_bucket_repo}/${package}.asc --acl public-read - aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${package}.asc fi fi done + aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/*.asc sign_repo ${tmp_repo_path} fi