File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -168,13 +168,21 @@ GitHub Actions is configured to automate:
168168
169169### ✔ Pipeline triggers
170170
171- Every push to the ** main branch** triggers:
171+ The CI/CD workflow is triggered only when relevant application or deployment files are updated.
172+ This prevents unnecessary builds and deployments caused by documentation or non-functional changes.
172173
173- 1 . Build updated Docker images
174- 2 . Push images to Docker Hub
175- 3 . SSH into EC2
176- 4 . Pull latest images
177- 5 . Restart containers
174+ The pipeline is configured to run on changes to:
175+
176+ * Backend source code
177+
178+ * Frontend source code
179+
180+ * Dockerfiles and container configurations
181+
182+ * Deployment and infrastructure configuration files
183+
184+ Documentation updates such as README changes do not trigger the pipeline.
185+ This optimization improves efficiency, reduces cloud resource usage, and minimizes unnecessary compute and Docker Hub operations.
178186
179187---
180188
You can’t perform that action at this time.
0 commit comments