Compare commits
2
Commits
733a7218fa
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e43773aa71 | ||
|
|
656976ff1e |
@@ -15,6 +15,13 @@ jobs:
|
|||||||
- name: Build backend image
|
- name: Build backend image
|
||||||
run: docker build -t realtime-collab-backend:latest ./backend
|
run: docker build -t realtime-collab-backend:latest ./backend
|
||||||
|
|
||||||
|
- name: Import image into k3s containerd
|
||||||
|
# docker build only populates the Docker daemon's store; k3s runs its
|
||||||
|
# own containerd (imagePullPolicy: Never, never pulls a registry), so
|
||||||
|
# the image must be explicitly imported or the pod keeps running
|
||||||
|
# whatever was last imported.
|
||||||
|
run: docker save realtime-collab-backend:latest | k3s ctr -n k8s.io images import -
|
||||||
|
|
||||||
- name: Roll out backend
|
- name: Roll out backend
|
||||||
run: |
|
run: |
|
||||||
kubectl rollout restart deployment/realtime-collab-backend
|
kubectl rollout restart deployment/realtime-collab-backend
|
||||||
@@ -22,6 +29,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Build frontend
|
- name: Build frontend
|
||||||
working-directory: frontend
|
working-directory: frontend
|
||||||
|
env:
|
||||||
|
# frontend/.env.local holds these for the manually-maintained
|
||||||
|
# /root/realtime-collab checkout, but it's gitignored, so this
|
||||||
|
# actions/checkout-based workspace never has it — without setting
|
||||||
|
# them here, Vite silently falls back to the localhost dev
|
||||||
|
# defaults and bakes a broken API URL into the production bundle.
|
||||||
|
VITE_API_URL: https://collab.m1ngdaxie.com/api
|
||||||
|
VITE_WS_URL: wss://collab.m1ngdaxie.com/ws
|
||||||
run: |
|
run: |
|
||||||
npm ci
|
npm ci
|
||||||
npm run build
|
npm run build
|
||||||
|
|||||||
@@ -40,3 +40,5 @@ postgres_data/
|
|||||||
loadtest/pprof
|
loadtest/pprof
|
||||||
|
|
||||||
/docs
|
/docs
|
||||||
|
|
||||||
|
.playwright-mcp/
|
||||||
|
|||||||
Reference in New Issue
Block a user