Skip to content

Commit 9c237f9

Browse files
committed
chore: clean up ci
1 parent d3513b7 commit 9c237f9

File tree

3 files changed

+47
-89
lines changed

3 files changed

+47
-89
lines changed
Lines changed: 41 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,53 @@
1-
name: CI - Server
1+
name: CI
22

33
on:
44
push:
55
branches: [ "main" ]
66
pull_request:
77
branches: [ "main" ]
88

9-
defaults:
10-
run:
11-
shell: bash
12-
working-directory: ./server
13-
149
env:
1510
CARGO_TERM_COLOR: always
1611

1712
jobs:
18-
build:
13+
frontend:
1914
runs-on: ubuntu-latest
15+
16+
defaults:
17+
run:
18+
working-directory: ./frontend
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- uses: pnpm/action-setup@v4
25+
name: Install pnpm
26+
with:
27+
version: 10
28+
run_install: false
29+
30+
- name: Install Node.js
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: 23
34+
35+
- name: Install dependencies
36+
run: pnpm install
37+
38+
- name: tsc
39+
run: npx tsc
40+
41+
- name: lint
42+
run: pnpm lint
43+
44+
server:
45+
runs-on: ubuntu-latest
46+
47+
defaults:
48+
run:
49+
working-directory: ./server
50+
2051
steps:
2152
- uses: actions/checkout@v4
2253
- name: Build
@@ -26,7 +57,7 @@ jobs:
2657

2758
deploy:
2859
runs-on: ubuntu-latest
29-
needs: build
60+
needs: [frontend, server]
3061
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
3162

3263
steps:
@@ -48,9 +79,9 @@ jobs:
4879
- name: Build and push Docker image
4980
uses: docker/build-push-action@v5
5081
with:
51-
context: ./server
82+
context: .
5283
push: true
53-
tags: mrkaye97/medici-server:latest
84+
tags: mrkaye97/medici:latest
5485
platforms: linux/amd64,linux/arm64
5586
cache-from: type=gha
5687
cache-to: type=gha,mode=max

.github/workflows/frontend.yaml

Lines changed: 0 additions & 71 deletions
This file was deleted.

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,16 @@ Medici is a minimalistic, self-hostable alternative to Splitwise for managing gr
6161

6262
### Docker Compose (Recommended for Self-Hosting)
6363

64-
The easiest way to get Medici running in production is to run the `compose.example.yaml` file, which will pull the necessary Docker images. You'll need a `.env` for the backend like this:
64+
The easiest way to get Medici running is with Docker Compose:
6565

66-
```
67-
DATABASE_URL=postgres://postgres:postgres@localhost:5442/medici
68-
AUTH_SECRET_KEY=medici-key
66+
```bash
67+
curl -O https://raw.githubusercontent.com/mrkaye97/medici/main/compose.example.yaml
68+
docker compose -f compose.example.yaml up
6969
```
7070

71-
and for the frontend like this:
71+
Then visit `http://localhost:3000` to get started.
7272

73-
```
74-
VITE_API_URL=http://medici-server:8000
75-
```
73+
For production, make sure to change `AUTH_SECRET_KEY` to a secure value in the compose file.
7674

7775
### Local Development Setup
7876

0 commit comments

Comments
 (0)