fix(scripts): aws cp instead of aws sync

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
Jason Dellaluce 2023-01-19 16:08:45 +00:00 committed by poiana
parent 9b644d893b
commit 4bc7d3fa65
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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