From 6e2b84b85ef605bc808fdbb3479650aafd7278e3 Mon Sep 17 00:00:00 2001 From: Ivan Krutov Date: Wed, 20 Dec 2023 19:33:57 +0300 Subject: [PATCH] Excluding S3 keys in dirs --- ci/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/build.sh b/ci/build.sh index dc804b3..200e404 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -28,7 +28,7 @@ if [ -n "$regenerate" ] && [ "$regenerate" = "true" ]; then regenerateDir="regenerate" mkdir -p "$regenerateDir" pushd "$regenerateDir" - aws s3 cp "s3://$S3_BUCKET_NAME/$path" . --recursive --exclude "*" --include "*.tgz" --endpoint="$S3_ENDPOINT" + aws s3 cp "s3://$S3_BUCKET_NAME/$path" . --recursive --exclude '*' --include '*.tgz' --exclude '*/*' --endpoint="$S3_ENDPOINT" helm repo index . --url "$CHARTS_REPO" popd cp "$regenerateDir"/index.yaml .