I have an docker public image, Now for some reason we had to shift it to AWS ECR,Now I am able to transfer the image to ECR from docker hub, but how to make sure that all the stable release in dockerhub will be pushed to AWS ECR, I want my ECR repo update with latest dockerhub image all the time.
3
votes
2 Answers
1
votes
You might consider building and publishing your Docker image through GitHub and its CI (Continuous Integration) GitHub Actions option.
That way, you can, in your GitHub workflow, chain:
- Publish-Docker-Github-Action: Publishes docker containers to DockerHub
- appleboy/docker-ecr-action: Uploads Docker Image to Amazon Elastic Container Registry (ECR).
Each time you are publishing a new version of your image, it would also be available in ECR.
0
votes