mirror of
https://github.com/google/nomulus.git
synced 2025-05-27 22:50:08 +02:00
Sync the live folder after Nomulus rollback (#854)
* Sync the live folder after Nomulus rollback To update the nomulus tool on corp desktop, the artifacts from the rollback target release should be copied to the 'live' folder. * Fix a test
This commit is contained in:
parent
b8d913ef64
commit
ef688796d0
3 changed files with 22 additions and 1 deletions
|
@ -150,3 +150,20 @@ def update_deploy_tags(dev_project: str, env: str,
|
|||
f'Update Nomulus tag in {env}',
|
||||
(f'echo {nom_tag} | gsutil cp - {destination}', ''), nom_tag,
|
||||
destination)
|
||||
|
||||
|
||||
def sync_live_release(dev_project: str, nom_tag: str) -> RollbackStep:
|
||||
"""Syncs the target release artifacts to the live folder.
|
||||
|
||||
By convention the gs://{dev_project}-deploy/live folder should contain the
|
||||
artifacts from the currently serving release.
|
||||
|
||||
For Domain Registry team members, this step updates the nomulus tool
|
||||
installed on corp desktops.
|
||||
"""
|
||||
artifacts_folder = f'gs://{dev_project}-deploy/{nom_tag}'
|
||||
live_folder = f'gs://{dev_project}-deploy/live'
|
||||
|
||||
return RollbackStep(
|
||||
f'Syncing {artifacts_folder} to {live_folder}.',
|
||||
('gsutil', '-m', 'rsync', '-d', artifacts_folder, live_folder))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue