mockbuild: use s3cmd put instead of sync to speed up the RPM upload
s3cmd sync actually downloads metadata for all objects in a s3 bucket. We have built a lot of RPMs, thus this takes 5 minutes on AWS and 25 minutes on my laptop (!!!). Let's use recursive put instead. This doesn't delete any files on the remote side. As we upload RPMs only once, this also shouldn't fail on "the object already exists". Using this method, we should be able to upload the RPMs in seconds. Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
32dd9cb614
commit
cf73edd2d2
1 changed files with 1 additions and 1 deletions
|
|
@ -119,5 +119,5 @@ createrepo_c "${REPO_DIR}"
|
|||
# Upload repository to S3.
|
||||
greenprint "☁ Uploading RPMs to S3"
|
||||
pushd repo
|
||||
s3cmd --acl-public sync . s3://${REPO_BUCKET}/
|
||||
s3cmd --acl-public put --recursive . s3://${REPO_BUCKET}/
|
||||
popd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue