I’m working on automating the build, push and deploy of services on AWS ECS by storing images on AWS ECR.
The build server (TeamCity) performs 4 steps
- install basic tools (dotnet CLI extensions for ECS)
- execute a cake script that builds and tests the code
- build the image container and pushes it into ECR (using
dotnet ecs push-imagecommand)
- creates a release on Octopus Deploy using the TeamCity integration
All works nice in steps 1, 2 and 3. The project on OD is set up following the blog post: https://octopus.com/blog/ecs (I changed the package to be called “package” instead of “web”)
If I create the release manually, it works as intended. Adding step number 4 would be a nice touch.
This is the command being executed by TeamCity:
octo.exe create-release --server REDACTED --apikey REDACTED --project REDACTED WITH SPACES --enableservicemessages --version 1.0.28 --package package:28