Deploy to AWS ECR
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
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner 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 push
with some credentials?2 Posted by Brandon on 29 Oct, 2019 04:55 PM
Running:
aws ecr get-login --region my_region --no-include-email
Will return:
docker login -u AWS -p aws_password https://aws_account_id.dkr.ecr.my_region.amazonaws.com
That 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-app
Then push:
docker push aws_account_id.dkr.ecr.my_region.amazonaws.com/my-app
Login:
https://docs.aws.amazon.com/AmazonECR/latest/userguide/registries.h...
Push:
https://docs.aws.amazon.com/AmazonECR/latest/userguide/docker-push-...
Support Staff 3 Posted by Feodor Fitsner 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.