prepare_rhel_internal: configure s3cmd explicitly
A similar change was added in 65e429fc4a
so adding it here as well.
This commit is contained in:
parent
47c41a0b8d
commit
2d13fa3a87
1 changed files with 4 additions and 0 deletions
|
|
@ -126,10 +126,14 @@ if [ -z "${REPO_URL+x}" ]; then
|
|||
|
||||
# Remove the previous latest repo for this job.
|
||||
# Don't fail if the path is missing.
|
||||
AWS_ACCESS_KEY_ID="$V2_AWS_ACCESS_KEY_ID" \
|
||||
AWS_SECRET_ACCESS_KEY="$V2_AWS_SECRET_ACCESS_KEY" \
|
||||
s3cmd --recursive rm "s3://${REPO_BUCKET}/${REPO_DIR_LATEST}" || true
|
||||
|
||||
# Upload repository to S3.
|
||||
greenprint "☁ Uploading RPMs to S3"
|
||||
AWS_ACCESS_KEY_ID="$V2_AWS_ACCESS_KEY_ID" \
|
||||
AWS_SECRET_ACCESS_KEY="$V2_AWS_SECRET_ACCESS_KEY" \
|
||||
s3cmd --acl-public put --recursive repo/ s3://${REPO_BUCKET}/repo/
|
||||
|
||||
# Public URL for the S3 bucket with our artifacts.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue