From 9b644d893b30962032a61c65bcae2e6e661fe620 Mon Sep 17 00:00:00 2001 From: Jason Dellaluce Date: Thu, 19 Jan 2023 15:59:39 +0000 Subject: [PATCH] fix(scripts): aws sync flags Signed-off-by: Jason Dellaluce --- scripts/publish-deb | 10 +++++----- scripts/publish-rpm | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/scripts/publish-deb b/scripts/publish-deb index 840afe8e..53cd78fa 100755 --- a/scripts/publish-deb +++ b/scripts/publish-deb @@ -180,7 +180,7 @@ if [ "${sign_all}" ]; then sign_deb ${tmp_repo_path} ${debSuite} ${file} echo "Syncing ${package}.asc to ${s3_bucket_repo}..." - aws s3 sync ${tmp_repo_path}/${debSuite}/${package}.asc ${s3_bucket_repo}/${debSuite}/${package}.asc --delete ---acl public-read + aws s3 sync ${tmp_repo_path}/${debSuite}/${package}.asc ${s3_bucket_repo}/${debSuite}/${package}.asc --delete --acl public-read aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${debSuite}/${package}.asc fi fi @@ -207,8 +207,8 @@ if ! [ ${#files[@]} -eq 0 ]; then aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${debSuite}/${package} aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${debSuite}/${package}.asc done - - # sync dists - aws s3 sync ${tmp_repo_path}/dists ${s3_bucket_repo}/dists --delete --acl public-read - aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/dists/* fi + +# sync dists +aws s3 sync ${tmp_repo_path}/dists ${s3_bucket_repo}/dists --delete --acl public-read +aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/dists/* \ No newline at end of file diff --git a/scripts/publish-rpm b/scripts/publish-rpm index b2978346..eacd85ae 100755 --- a/scripts/publish-rpm +++ b/scripts/publish-rpm @@ -107,7 +107,7 @@ if [ "${sign_all}" ]; then sign_rpm ${tmp_repo_path} ${file} echo "Syncing ${package}.asc to ${s3_bucket_repo}..." - aws s3 sync ${tmp_repo_path}/${package}.asc ${s3_bucket_repo}/${package}.asc --delete ---acl public-read + aws s3 sync ${tmp_repo_path}/${package}.asc ${s3_bucket_repo}/${package}.asc --delete --acl public-read aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${package}.asc fi fi @@ -134,8 +134,8 @@ if ! [ ${#files[@]} -eq 0 ]; then aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${package} aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${package}.asc done - - # sync repodata - aws s3 sync ${tmp_repo_path}/repodata ${s3_bucket_repo}/repodata --delete --acl public-read - aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/repodata/* fi + +# sync repodata +aws s3 sync ${tmp_repo_path}/repodata ${s3_bucket_repo}/repodata --delete --acl public-read +aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/repodata/* \ No newline at end of file