Skip to content

Commit

Permalink
Better aws s3 cp command for regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
vania-pooh committed Dec 20, 2023
1 parent f4a820a commit 765ad92
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down

0 comments on commit 765ad92

Please sign in to comment.