So the title kind of says it all. I am trying to come up with a solution to create a CI/CD workflow. The workflow I am trying to create is roughly as follows; Github stores our code and Dockerfile, ECR pulls in our built image every time a push to master is made. ECR then pushes that newly built image to EC2 based on tagging it by (latest), I then route that instance to DNS and create our web server.
I already have Docker images built for all repos and then build perfectly fine. Github actions is also already set and pushes a new image to ECR with the tag (latest) when a push is made. This all works fine. My blind spot is this.. what do I do with the ECR images? How do I host them and point them publicly towards DNS? I know of ECS but, I would prefer EC2 I just can't find any answers anywhere. Thank you all for your help!