Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INF-251 use set-tag for prod #3911

Merged
merged 1 commit into from
Sep 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 20 additions & 30 deletions .circleci/bin/deploy-ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,36 +468,26 @@ def cli(
# perform release
# NOTE: `git pull` and `docker pull` write to stderr,
# so we can't readily catch "errors"
if environment == "prod":
dry_run = True
ssh(
host,
"yes | audius-cli upgrade",
show_output=True,
exit_on_error=IGNORE,
dry_run=dry_run,
)
else:
ssh(
host,
"yes | audius-cli pull",
show_output=True,
exit_on_error=IGNORE,
dry_run=dry_run,
)
ssh(
host,
f"yes | audius-cli set-tag {git_tag}",
show_output=True,
dry_run=dry_run,
)
ssh(
host,
f"yes | audius-cli launch {service}",
show_output=True,
exit_on_error=IGNORE,
dry_run=dry_run,
)
ssh(
host,
"yes | audius-cli pull",
show_output=True,
exit_on_error=IGNORE,
dry_run=dry_run,
)
ssh(
host,
f"yes | audius-cli set-tag {git_tag}",
show_output=True,
dry_run=dry_run,
)
ssh(
host,
f"yes | audius-cli launch {service}",
show_output=True,
exit_on_error=IGNORE,
dry_run=dry_run,
)

release_summary["upgraded"].append(host)
except:
Expand Down