Skip to content

Commit 2cfa116

Browse files
committed
Optimized CI/CD pipeline for continuous deployment
1 parent bd5c221 commit 2cfa116

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

.github/workflows/ci_cd.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
1-
name: GitHub Actions - CI/CD
1+
name: QuantumAI - CI/CD
22
on: push
33

4-
jiob:
5-
name: CI/CD Pipeline
4+
job:
5+
name: Automated CI/CD
66
runs:
7-
using: ubuntullatest
7+
using: ubuntulatest
88
steps:
99
- name: Install dependencies
10-
run: |
11-
- pip install -r requirements.txt
10+
run: |
11+
- pip install -r requirements.txt
12+
- pip install -r poetry # Poetry for better package management
1213
- name: Run tests
13-
run: python tests/test_core.py
14+
run: |
15+
- pytest tests/ # Run test suite
1416
- name: Deploy to Production
1517
run: |
16-
- pip deploy
18+
- docker compose -a quantumai
19+
- docker build -f Dockerfile -t quantumai:latest
20+
- docker push /quantumai
1721
traggers:
18-
- github-actions
22+
- github-actions

0 commit comments

Comments
 (0)