feat: add server deployment, desktop builds, and CI/CD pipeline
- Add Dockerfile with adapter-node for server deployment - Add Kubernetes deployment and ingress manifests - Add GitHub Actions workflow (server build, desktop builds, K8s deploy) - Electron now loads hosted URL (https://optima.osdci.net) in production - Add macOS DMG maker and make:macos script - Switch to static imports in lib/index.ts - Add .dockerignore
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: optima-ui
|
||||
namespace: optima
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: optima-ui
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: optima-ui
|
||||
spec:
|
||||
containers:
|
||||
- name: optima-ui
|
||||
image: ghcr.io/project-optima/ttscm-ui:latest
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: PUBLIC_API_URL
|
||||
value: "https://opt-api.osdci.net"
|
||||
- name: ORIGIN
|
||||
value: "https://optima.osdci.net"
|
||||
- name: PORT
|
||||
value: "3000"
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
imagePullSecrets:
|
||||
- name: github-container-registry
|
||||
@@ -0,0 +1,39 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: optima-ui-ingress
|
||||
namespace: optima
|
||||
annotations:
|
||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||
spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- optima.osdci.net
|
||||
secretName: osdci-net-cert
|
||||
rules:
|
||||
- host: optima.osdci.net
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: optima-ui
|
||||
port:
|
||||
number: 3000
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: optima-ui
|
||||
namespace: optima
|
||||
labels:
|
||||
app: optima-ui
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 3000
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: optima-ui
|
||||
Reference in New Issue
Block a user