mirror of https://github.com/docker/compose.git
Avoid accidental prod push
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
05afd5a2db
commit
f248dbe280
|
@ -213,6 +213,8 @@ def finalize(args):
|
|||
if not gh_release:
|
||||
raise ScriptError('No Github release draft for this version')
|
||||
|
||||
repository.checkout_branch(br_name)
|
||||
|
||||
pypandoc.convert_file(
|
||||
os.path.join(REPO_ROOT, 'README.md'), 'rst', outputfile=os.path.join(REPO_ROOT, 'README.rst')
|
||||
)
|
||||
|
@ -222,8 +224,9 @@ def finalize(args):
|
|||
if not merge_status.merged:
|
||||
raise ScriptError('Unable to merge PR #{}: {}'.format(pr_data.number, merge_status.message))
|
||||
print('Uploading to PyPi')
|
||||
run_setup(os.path.join(REPO_ROOT, 'setup.py'), script_args=['upload'])
|
||||
img_manager.push_images(args.release)
|
||||
# TODO: this will do real stuff. Uncomment when done testing
|
||||
# run_setup(os.path.join(REPO_ROOT, 'setup.py'), script_args=['upload'])
|
||||
# img_manager.push_images(args.release)
|
||||
repository.publish_release(gh_release)
|
||||
except ScriptError as e:
|
||||
print(e)
|
||||
|
|
Loading…
Reference in New Issue