-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathci.prod.yml
More file actions
55 lines (55 loc) · 1.91 KB
/
ci.prod.yml
File metadata and controls
55 lines (55 loc) · 1.91 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
54
55
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: nix-env -iA nixpkgs.uv
- name: "set ev vars "
command: . .env && cs set-env -w $WORKSPACE_ID -t $TEAM_ID --env-var
UV_PYTHON_INSTALL_DIR=$PWD/.codesphere-internal/.uv-python-install
--env-var UV_PYTHON_BIN_DIR=$PWD/.codesphere-internal/.uv-python-bin
--env-var UV_CACHE_DIR=$PWD/.codesphere-internal/.uv --env-var
UV_PYTHON_CACHE_DIR=$PWD/.codesphere-internal/.uv-python
- name: install frontend environment
command: cd frontend && { [ ! -d ".venv" ] && uv venv; uv sync --no-dev; }
- name: install backend environment
command: cd backend && { [ ! -d ".venv" ] && uv venv; uv sync --no-dev; }
test:
steps: []
run:
frontend:
steps:
- name: start frontend application
command: "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: 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: 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