We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17c0d1b commit 276bacdCopy full SHA for 276bacd
scripts/publish-rpm-packages.sh
@@ -87,6 +87,8 @@ done
87
88
# Upload the updated repository to S3
89
printf "\n>>> Uploading repository to S3 \n"
90
+# Remove old metadata files first to avoid duplicates
91
+aws s3 rm s3://${RPM_BUCKET_NAME}/${RPM_REPO_PATH}/ --recursive --exclude "*" --include "*/repodata/*" --endpoint-url "${AWS_ENDPOINT_URL}" || echo "No old metadata to remove"
92
aws s3 sync rpm-repo/ s3://${RPM_BUCKET_NAME}/${RPM_REPO_PATH}/ --endpoint-url "${AWS_ENDPOINT_URL}"
93
94
# Upload the public key
0 commit comments