Skip to content

Commit 2a5bc0d

Browse files
author
colto
committed
Build Docker images in CI
1 parent b756f56 commit 2a5bc0d

File tree

3 files changed

+42
-2
lines changed

3 files changed

+42
-2
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,39 @@ jobs:
5050

5151
- name: Build frontend
5252
run: npm run build
53+
54+
backend-docker-build:
55+
name: Docker Build (Backend)
56+
runs-on: ubuntu-latest
57+
58+
steps:
59+
- name: Checkout repo
60+
uses: actions/checkout@v4
61+
62+
- name: Set up Docker Buildx
63+
uses: docker/setup-buildx-action@v3
64+
65+
- name: Build backend image
66+
uses: docker/build-push-action@v6
67+
with:
68+
context: ./backend
69+
push: false
70+
tags: cloudpulse-backend:ci
71+
72+
frontend-docker-build:
73+
name: Docker Build (Frontend)
74+
runs-on: ubuntu-latest
75+
76+
steps:
77+
- name: Checkout repo
78+
uses: actions/checkout@v4
79+
80+
- name: Set up Docker Buildx
81+
uses: docker/setup-buildx-action@v3
82+
83+
- name: Build frontend image
84+
uses: docker/build-push-action@v6
85+
with:
86+
context: ./frontend
87+
push: false
88+
tags: cloudpulse-frontend:ci

documentation/progress-log.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,8 @@
3232
- Implemented env-driven backend datasource configuration
3333
- Implemented centralized configurable CORS configuration
3434
- Verified full stack runs locally via Docker Compose
35-
- Verified persistence through UI and DB
35+
- Verified persistence through UI and DB
36+
37+
- Added GitHub Actions CI workflow
38+
- Workflow builds backend (Maven) and frontend (Vite)
39+
- Verified CI runs successfully on push

documentation/roadmap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@
2727
- [ ] Metrics view
2828

2929
## Phase 4 (CI/CD)
30-
- [ ] GitHub Actions build/test
30+
- [x] GitHub Actions build/test
3131
- [ ] GitHub Actions deploy

0 commit comments

Comments
 (0)