File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 5454
5555# Download existing repository metadata if it exists
5656printf " \n>>> Downloading existing repository metadata \n"
57- aws s3 sync s3://${RPM_BUCKET_NAME} /${RPM_REPO_PATH} / rpm-repo/ --endpoint-url " ${AWS_ENDPOINT_URL} " --delete || echo " No existing repository found, creating new one"
57+ aws s3 sync s3://${RPM_BUCKET_NAME} /${RPM_REPO_PATH} / rpm-repo/ --endpoint-url " ${AWS_ENDPOINT_URL} " --exclude " * " --include " */repodata/* " || echo " No existing repository found, creating new one"
5858
5959# Create repository metadata for each architecture
6060printf " \n>>> Creating repository metadata \n"
8585
8686# Upload the updated repository to S3
8787printf " \n>>> Uploading repository to S3 \n"
88- aws s3 sync rpm-repo/ s3://${RPM_BUCKET_NAME} /${RPM_REPO_PATH} / --endpoint-url " ${AWS_ENDPOINT_URL} " --delete
88+ aws s3 sync rpm-repo/ s3://${RPM_BUCKET_NAME} /${RPM_REPO_PATH} / --endpoint-url " ${AWS_ENDPOINT_URL} "
8989
9090# Upload the public key
9191printf " \n>>> Uploading public key \n"
You can’t perform that action at this time.
0 commit comments