Create Release with Docker image in AWS ECR

(Renato Golia) #1

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

  1. install basic tools (dotnet CLI extensions for ECS)
  2. execute a cake script that builds and tests the code
  3. build the image container and pushes it into ECR (using dotnet ecs push-image command)
  4. 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: (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

(Shannon Lewis) #3


Thanks for getting in touch. I saw that one of the team have responded your question over in the blog comments, so just adding this here as a redirect in case others come across it.