-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathci.yml
More file actions
53 lines (53 loc) · 1.72 KB
/
ci.yml
File metadata and controls
53 lines (53 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
schemaVersion: v0.2
prepare:
steps:
- name: install Codesphere cli tool
command: mkdir -p $HOME/.local/bin && wget -qO-
'https://api.github.com/repos/codesphere-cloud/cs-go/releases/latest' |
grep linux_amd64 | grep browser_download_url | sed s/.*https/https/ |
sed s/\".*$// | xargs wget -O $HOME/.local/bin/cs && chmod +x
$HOME/.local/bin/cs
- name: install uv standalone version
command: curl -LsSf https://astral.sh/uv/install.sh | env
UV_INSTALL_DIR="$HOME/app" sh && chmod +x $HOME/app/uv
- command: cp -n .env.sample .env
- name: install frontend environment
command: . ./env && cd frontend && { [ ! -d ".venv" ] && uv venv; uv sync
--no-dev; }
- name: install backend environment
command: . ./env && cd backend && { [ ! -d ".venv" ] && uv venv; uv sync
--no-dev; }
test:
steps: []
run:
frontend:
steps:
- name: start frontend application
command: ". ./env && cd frontend && uv run streamlit run main.py
--server.headless true --server.address 0.0.0.0 --server.port 3000
--browser.gatherUsageStats false --logger.level info "
plan: 8
replicas: 1
isPublic: true
network:
path: /
stripPath: false
backend:
steps:
- name: start backend application
command: . ./env && cd backend && uv run uvicorn app:app --port 3000 --host
0.0.0.0 --workers 2
plan: 8
replicas: 1
isPublic: false
api-docs:
steps:
- name: deploy docs
command: . ./env && cd backend && uv run uvicorn doc:app_docs --host 0.0.0.0
--port 3000 --workers 2
plan: 8
replicas: 1
isPublic: true
network:
path: /api
stripPath: false