8 Commits

Author SHA1 Message Date
Ryan Moon
d9a7409f9c chore: remove valkey chart templates
Some checks failed
Build & Release / build (push) Has been cancelled
2026-04-03 19:48:48 -05:00
Ryan Moon
358e07b1d5 feat: remove per-customer valkey, use managed Valkey with REDIS_KEY_PREFIX 2026-04-03 19:48:48 -05:00
lunarfront-bot
5df914a40f chore: bump version to v0.0.28
All checks were successful
Build & Release / build (push) Has been skipped
2026-04-04 00:47:43 +00:00
Ryan Moon
1f8002629f fix: add libstdc++ to runtime image for bun compiled binary
All checks were successful
Build & Release / build (push) Successful in 1m52s
2026-04-03 19:45:48 -05:00
lunarfront-bot
ff2e4586f3 chore: bump version to v0.0.27
All checks were successful
Build & Release / build (push) Has been skipped
2026-04-04 00:36:04 +00:00
Ryan Moon
019867f1fa fix: update GIT_REMOTE to git.lunarfront.tech
Some checks failed
Build & Release / build (push) Has been cancelled
2026-04-03 19:35:45 -05:00
Ryan Moon
48d49a068a fix: include chart files in version bump commit to prevent rebase conflict
Some checks failed
Build & Release / build (push) Failing after 16s
2026-04-03 19:34:31 -05:00
11f81cfd8e Merge pull request 'feat: add Helm chart and switch image builds to DOCR' (#3) from fix/ci-only-on-pr into main
Some checks failed
Build & Release / build (push) Failing after 16s
Reviewed-on: #3
2026-04-03 23:56:55 +00:00
9 changed files with 15 additions and 59 deletions

View File

@@ -15,7 +15,7 @@ jobs:
if: "!startsWith(github.event.head_commit.message, 'chore: bump version')"
env:
REGISTRY: registry.digitalocean.com/lunarfront
GIT_REMOTE: git2.lunarfront.tech
GIT_REMOTE: git.lunarfront.tech
DOCKER_HOST: tcp://localhost:2375
steps:
@@ -104,7 +104,7 @@ jobs:
git config user.name "lunarfront-bot"
git config user.email "bot@lunarfront.tech"
git remote set-url origin https://lunarfront-bot:${{ secrets.BOT_TOKEN }}@$GIT_REMOTE/ryan/lunarfront-app.git
git add packages/backend/package.json
git add packages/backend/package.json chart/Chart.yaml chart/values.yaml
git commit -m "chore: bump version to v${{ steps.version.outputs.version }}"
git pull --rebase origin main
git push origin main

View File

@@ -21,7 +21,7 @@ RUN bun build src/main.ts --compile --outfile /app/server \
--define "process.env.APP_VERSION='${APP_VERSION}'"
FROM alpine:3.21
RUN addgroup -S app && adduser -S app -G app
RUN apk add --no-cache libstdc++ && addgroup -S app && adduser -S app -G app
WORKDIR /app
COPY --from=build /app/server ./server
COPY --from=build /app/packages/backend/src/db/migrations ./migrations

View File

@@ -2,5 +2,5 @@ apiVersion: v2
name: lunarfront
description: LunarFront small business management platform
type: application
version: 0.1.0
appVersion: "0.0.0"
version: 0.0.28
appVersion: "0.0.28"

View File

@@ -38,6 +38,11 @@ spec:
secretKeyRef:
name: lunarfront-secrets
key: redis-url
- name: REDIS_KEY_PREFIX
valueFrom:
secretKeyRef:
name: lunarfront-secrets
key: redis-key-prefix
- name: JWT_SECRET
valueFrom:
secretKeyRef:

View File

@@ -1,24 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-valkey
namespace: {{ .Release.Namespace }}
labels:
{{- include "lunarfront.labels" . | nindent 4 }}
spec:
replicas: 1
selector:
matchLabels:
app: {{ .Release.Name }}-valkey
template:
metadata:
labels:
app: {{ .Release.Name }}-valkey
spec:
containers:
- name: valkey
image: "{{ .Values.valkey.image.repository }}:{{ .Values.valkey.image.tag }}"
ports:
- containerPort: {{ .Values.valkey.port }}
resources:
{{- toYaml .Values.valkey.resources | nindent 12 }}

View File

@@ -1,13 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-valkey
namespace: {{ .Release.Namespace }}
labels:
{{- include "lunarfront.labels" . | nindent 4 }}
spec:
selector:
app: {{ .Release.Name }}-valkey
ports:
- port: {{ .Values.valkey.port }}
targetPort: {{ .Values.valkey.port }}

View File

@@ -1,7 +1,7 @@
backend:
image:
repository: registry.digitalocean.com/lunarfront/lunarfront-app
tag: latest
tag: 0.0.27
pullPolicy: Always
port: 8000
resources:
@@ -15,7 +15,7 @@ backend:
frontend:
image:
repository: registry.digitalocean.com/lunarfront/lunarfront-frontend
tag: latest
tag: 0.0.27
pullPolicy: Always
port: 80
resources:
@@ -26,19 +26,6 @@ frontend:
cpu: 200m
memory: 128Mi
valkey:
image:
repository: valkey/valkey
tag: "8"
port: 6379
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 200m
memory: 128Mi
ingress:
host: ""
className: nginx

View File

@@ -1,6 +1,6 @@
{
"name": "@lunarfront/backend",
"version": "0.0.26",
"version": "0.0.28",
"private": true,
"type": "module",
"scripts": {

View File

@@ -9,7 +9,8 @@ declare module 'fastify' {
export const redisPlugin = fp(async (app) => {
const redisUrl = process.env.REDIS_URL ?? 'redis://localhost:6379'
const redis = new Redis(redisUrl)
const keyPrefix = process.env.REDIS_KEY_PREFIX ? `${process.env.REDIS_KEY_PREFIX}:` : ''
const redis = new Redis(redisUrl, { keyPrefix })
app.decorate('redis', redis)