Repository navigation
ci: add on-demand workflow to redeploy the ECS service - #154
Merged
Merged
Conversation
Adds a manually triggered "Deploy to ECS" workflow that forces a new deployment of the service running the image built by main.yml, then tracks that deployment's rolloutState until it completes, fails, or is rolled back. Reads the cluster and service from the ECS_CLUSTER and ECS_SERVICE repo variables and reuses the AWS_IAM_ROLE secret. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Contributor
|
🚀 Preview deployed
|
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
This was referenced Oct 29, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a manually triggered Deploy to ECS workflow (
.github/workflows/deploy-ecs.yml) that redeploys the ECS service running the imagemain.ymlbuilds and pushes to ECR. Today a new image only reaches ECS if someone restarts the service by hand.latesttag, which ECS resolves to a digest at the start of each deployment, so the newest push gets picked up.rolloutStateuntil it isCOMPLETED,FAILED, or no longer listed (rolled back or superseded), with a 20-minute timeout.aws ecs wait services-stableisn't used because it also succeeds once a circuit-breaker rollback settles on the previous image.The build workflow is unchanged.
workflow_callcan be added later ifmain.ymlshould deploy automatically after pushing.Setup before the first run
ECS_CLUSTERandECS_SERVICE(the cluster name and the service name from the ECS console). The workflow fails early if either is missing.AWS_IAM_ROLErole needsecs:UpdateServiceandecs:DescribeServiceson the service.Testing
actionlint(with shellcheck) passes on the new workflow.describe-servicesresponses for in-progress, completed, failed and rolled-back deployments.workflow_dispatchworkflow can only be triggered once it is on the default branch.🤖 Generated with Claude Code