From 4bc7d3fa65efd21621f3d03d07a3f66bd83a3dd5 Mon Sep 17 00:00:00 2001 From: Jason Dellaluce Date: Thu, 19 Jan 2023 16:08:45 +0000 Subject: [PATCH] fix(scripts): aws cp instead of aws sync 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 53cd78fa..a7596010 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 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 diff --git a/scripts/publish-rpm b/scripts/publish-rpm index eacd85ae..8d4c0b7b 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 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