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

Fix wait for rollbacked deployment with CodeDeploy. #673

Merged
merged 5 commits into from
Mar 7, 2024
Merged

Conversation

fujiwara
Copy link
Contributor

@fujiwara fujiwara commented Mar 6, 2024

When using CodeDeploy, ecspresso rollback had two problems.

  • Deregistering wrong task definition after rollback.
    • If deployment in progress is stopped, ecspresso deregisters the task definition of the PRIMARY deployment (This is in use!)
  • Sometimes failed to wait until the deployment was completed. refs Fix ecspresso rollback issue #663

This PR resolves these problems.

fujiwara added 3 commits March 6, 2024 15:25
With CodeDeploy, when the ecspresso rollback runs while deployment is in progress, the task definition set in the PRIMARY deployment is accidentally deregistered.

This commit can find the valid task definition to deregister, which is set in the rollbacked deployment.
@fujiwara fujiwara marked this pull request as ready for review March 6, 2024 08:34
@fujiwara fujiwara merged commit f9fe5d0 into v2 Mar 7, 2024
4 checks passed
@fujiwara fujiwara deleted the fix/cd-rollback-2 branch March 7, 2024 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant