Commit 37797f3
committed
fix(ci): fail deployment action when deployment is rolled back
Problem: When ECS's circuit breaker mechanism rolls back a failing
deploy, the deploy task github action will exit with a success code when
infact the deployment was not successful.
In order to identify unsuccessful service updates, we want the github
action to fail. At time of writing, there is no option elicit this
behavior from the aws-actions/amazon-ecs-deploy-task-definition@v2
action. Instead, we must check that the services current task definition
is the one we attempted to roll out.
See discussion in aws-actions/amazon-ecs-deploy-task-definition#1911 parent bf35e3e commit 37797f3
1 file changed
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | 72 | | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
0 commit comments