I don't see any examples or discussions about publishing a container image artifact to AWS ECR. Is there anything preventing this from working? It seems like a natural item to be set as a deployment provider in the yaml.
Is anyone doing this? I'm checking so that there is a record yes or no about the feasibility. It is helpful to know if the answer is no, so people don't have to rediscover the same thing over and over.
Thanks

#1 Posted by Feodor Fitsner Support staff on 29 Oct, 2019 02:36 AM
Hi Brandon,
It's not yet supported though it would be great to have such a deployment provider. Supporting Docker Hub and Azure ACR would be great too.
How does publishing to ECR work? Is it just regular
docker pushwith some credentials?#2 Posted by Brandon on 29 Oct, 2019 04:55 PM
Running:
aws ecr get-login --region my_region --no-include-emailWill return:
docker login -u AWS -p aws_password https://aws_account_id.dkr.ecr.my_region.amazonaws.comThat gives an authentication token that is good for 12 hours.
To push an image, first tag it with:
docker tag my_tag aws_account_id.dkr.ecr.my_region.amazonaws.com/my-appThen push:
docker push aws_account_id.dkr.ecr.my_region.amazonaws.com/my-appLogin:
https://docs.aws.amazon.com/AmazonECR/latest/userguide/registries.h...
Push:
https://docs.aws.amazon.com/AmazonECR/latest/userguide/docker-push-...
#3 Posted by Feodor Fitsner Support staff on 29 Oct, 2019 05:02 PM
Thanks! I've added a new issue: https://github.com/appveyor/ci/issues/3164
Feodor Fitsner closed this discussion on 03 Apr, 2020 06:45 PM.