Skip to content

Commit

Permalink
Release script: Ensure push to the right region with latest rpm-s3
Browse files Browse the repository at this point in the history
  • Loading branch information
spinscale committed Jan 11, 2016
1 parent c2259a2 commit 5bd4582
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dev-tools/prepare_release_candidate.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,8 @@ def check_environment_and_commandline_tools(check_only):
debs3_list_cmd = 'deb-s3 list -b %s --prefix %s' % (bucket, debs3_prefix)
debs3_verify_cmd = 'deb-s3 verify -b %s --prefix %s' % (bucket, debs3_prefix)
rpms3_prefix = 'elasticsearch/staging/%s-%s/repos/%s/centos' % (release_version, shortHash, package_repo_version)
rpms3_upload_cmd = 'rpm-s3 -v -b %s -p %s --sign --visibility public-read -k 100 %s' % (bucket, rpms3_prefix, rpm)
# external-1 is the alias name for the us-east-1 region. This is used by rpm-s3 to construct the hostname
rpms3_upload_cmd = 'rpm-s3 -v -b %s -p %s --sign --visibility public-read -k 100 %s -r external-1' % (bucket, rpms3_prefix, rpm)

if deploy_s3:
run(s3cmd_sync_to_staging_bucket_cmd)
Expand Down

0 comments on commit 5bd4582

Please sign in to comment.