Skip to content

Commit 1811e9f

Browse files
committed
Update README with details on optimized CI/CD pipeline triggers and excluded documentation changes
1 parent fe47ffa commit 1811e9f

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)