This GitHub repository is designed to automate the process of building Docker images and pushing them to Amazon Elastic Container Registry (ECR) based on changes made to specific folders within your project. The primary goal is to optimize the workflow by triggering Docker image builds only when modifications occur in either folder_1 or folder_2.
The repository includes configuration files and scripts that facilitate this workflow, allowing you to maintain Docker images efficiently. Here's an overview of how it works:
Monitoring for Changes: The repository sets up a mechanism to constantly monitor folder_1 and folder_2 for any updates or changes.
Change Detection: When changes are detected in either folder_1 or folder_2, a trigger is initiated.
Docker Image Build: A script or automation process is employed to build Docker images corresponding to the changes made in the detected folders. This ensures that you only build images that are affected by the modifications.
ECR Push: After successfully building the Docker images, they are automatically pushed to Amazon Elastic Container Registry (ECR), making them available for use in your containerized applications.
D:.
├───.github
│ └───workflows
├───folder_1
│ └───another_folder
│ └───Dockerfile
└───folder_2
└───another_folder_2
└───Dockerfile
This repository aims to streamline your development workflow by reducing unnecessary Docker image builds and ensuring that your ECR repository stays up-to-date with the latest changes in folder_1 and folder_2. It's an efficient solution for managing Docker containers in a development environment where changes are frequent and need to be reflected in the container images.