1
- name : CI/CD Pipeline for Network Security MLOps
1
+ name : CI/CD for Network Security MLOps
2
2
3
3
on :
4
4
push :
@@ -21,28 +21,25 @@ jobs:
21
21
22
22
- name : 🧪 Install Dependencies
23
23
run : |
24
- python -m venv venv
25
- source venv/bin/activate
26
- pip install --upgrade pip
24
+ python -m pip install --upgrade pip
27
25
pip install -r requirements.txt
28
26
29
27
- name : ⚙️ Set up DVC
30
28
uses : iterative/setup-dvc@v1
31
29
32
- - name : ⬇️ Pull DVC Data (if using remote)
30
+ - name : ⬇️ Pull DVC Data
33
31
run : |
34
- dvc pull || echo "No remote or data to pull ."
32
+ dvc pull || echo "No DVC remote configured yet ."
35
33
36
- - name : 🚀 Run Main Pipeline
34
+ - name : 🚀 Run MLOps Pipeline from app.py
37
35
run : |
38
- source venv/bin/activate
39
- python main.py
36
+ python app.py
40
37
41
- - name : ✅ Commit Updated DVC Files
38
+ - name : ✅ Track and Push Artifacts with DVC
42
39
run : |
43
- git config --global user.email "your_email@example .com"
44
- git config --global user.name "Your Name "
45
- dvc add artifacts/NetworkSecurityTrainingPipeline
46
- git add artifacts/*.dvc artifacts/.gitignore
47
- git commit -m "Update artifacts via GitHub Actions " || echo "No changes to commit"
48
- git push || echo "Nothing to push"
40
+ git config --global user.email "${{ github.actor }}@users.noreply.github .com"
41
+ git config --global user.name "${{ github.actor }} "
42
+ dvc add artifacts/NetworkSecurityTrainingPipeline || echo "No new artifacts"
43
+ git add artifacts/*.dvc artifacts/.gitignore || true
44
+ git commit -m "GitHub Actions: Track updated artifacts " || echo "Nothing to commit"
45
+ git push origin main || echo "Nothing to push"
0 commit comments