From 765ad923914d2a5f1cfb4af68ad842463e70ce62 Mon Sep 17 00:00:00 2001 From: Ivan Krutov Date: Wed, 20 Dec 2023 18:11:09 +0300 Subject: [PATCH] Better aws s3 cp command for regeneration --- ci/build.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ci/build.sh b/ci/build.sh index 572b038..dc804b3 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -28,8 +28,7 @@ if [ -n "$regenerate" ] && [ "$regenerate" = "true" ]; then regenerateDir="regenerate" mkdir -p "$regenerateDir" pushd "$regenerateDir" - keys="$path/*.tgz" - aws s3 cp "s3://$S3_BUCKET_NAME$keys" . --endpoint="$S3_ENDPOINT" + aws s3 cp "s3://$S3_BUCKET_NAME/$path" . --recursive --exclude "*" --include "*.tgz" --endpoint="$S3_ENDPOINT" helm repo index . --url "$CHARTS_REPO" popd cp "$regenerateDir"/index.yaml .