Search code examples
dockerdockerhubamazon-ecr

Update AWS ECR for every stable release in docker Hub


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.


Solution

  • 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:

    Each time you are publishing a new version of your image, it would also be available in ECR.