Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
feat: publish helm chart to ghcr (#3415)
Multica Eve202200bc62ab
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex b75c47bfbc..b08a89693e 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -322,6 +322,47 @@ jobs:docker buildx imagetools inspect \ghcr.io/${{ github.repository_owner }}/multica-web:${{ steps.meta.outputs.version }}+ helm-chart:+ needs: [verify, docker-backend-merge, docker-web-merge]+ if: github.repository_owner == 'multica-ai'+ runs-on: ubuntu-latest+ concurrency:+ group: release-helm-chart-${{ github.ref }}+ cancel-in-progress: true+ env:+ CHART_DIR: deploy/helm/multica+ OCI_REGISTRY: oci://ghcr.io/${{ github.repository_owner }}/charts+ steps:+ - name: Checkout+ uses: actions/checkout@v4++ - name: Setup Helm+ uses: azure/setup-helm@v4++ - name: Sync chart metadata with release tag+ env:+ TAG_NAME: ${{ needs.verify.outputs.tag_name }}+ run: |+ chart_version="${TAG_NAME#v}"+ sed -i -E "s/^version:.*/version: ${chart_version}/" "$CHART_DIR/Chart.yaml"+ sed -i -E "s/^appVersion:.*/appVersion: \"${TAG_NAME}\"/" "$CHART_DIR/Chart.yaml"+ echo "CHART_VERSION=${chart_version}" >> "$GITHUB_ENV"++ - name: Lint chart+ run: helm lint "$CHART_DIR"++ - name: Package chart+ run: helm package "$CHART_DIR" --destination .chart-packages++ - name: Login to GHCR+ run: echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ghcr.io --username "${{ github.actor }}" --password-stdin++ - name: Push chart to GHCR+ run: helm push ".chart-packages/multica-${CHART_VERSION}.tgz" "$OCI_REGISTRY"++ - name: Verify published chart+ run: helm show chart "$OCI_REGISTRY/multica" --version "$CHART_VERSION"+# Build the Desktop installers for Linux and Windows and upload them to# the GitHub Release that the `release` job above just published. macOS# Desktop continues to ship via the manual `release-desktop` skill so itdiff --git a/SELF_HOSTING.md b/SELF_HOSTING.mdindex c0a931ebe3..854474f8cd 100644--- a/SELF_HOSTING.md+++ b/SELF_HOSTING.md@@ -139,7 +139,7 @@ multica daemon status## Kubernetes Deployment (Alternative)-If you already run a Kubernetes cluster, you can deploy Multica there instead of Docker Compose using the Helm chart at [`deploy/helm/multica/`](deploy/helm/multica/). It targets a typical k3s / k8s setup with an Ingress controller and a default `ReadWriteOnce` StorageClass — authored against k3s + Traefik + `local-path`, and should work on any cluster with minor tweaks.+If you already run a Kubernetes cluster, you can deploy Multica there instead of Docker Compose using the released OCI Helm chart at `oci://ghcr.io/multica-ai/charts/multica` or the source chart at [`deploy/helm/multica/`](deploy/helm/multica/). It targets a typical k3s / k8s setup with an Ingress controller and a default `ReadWriteOnce` StorageClass — authored against k3s + Traefik + `local-path`, and should work on any cluster with minor tweaks.The chart creates the following resources in the target namespace:@@ -196,15 +196,29 @@ Leave optional values empty for now — you can fill them in later (see [Step 5### Step 4 — Install the chart```bash-helm install multica deploy/helm/multica -n multica+helm install multica oci://ghcr.io/multica-ai/charts/multica \+ --version <chart-version> \+ -n multica```-To override defaults, copy `deploy/helm/multica/values.yaml`, edit it, and pass it with `-f`:+Released chart versions strip the leading `v` from the Git tag. For example, release tag `v0.3.5` publishes chart version `0.3.5`; the chart defaults the backend and frontend image tags to `v0.3.5`.++To override defaults, export the chart values, edit them, and pass them with `-f`:```bash-cp deploy/helm/multica/values.yaml my-values.yaml+helm show values oci://ghcr.io/multica-ai/charts/multica \+ --version <chart-version> > my-values.yaml# edit my-values.yaml — e.g. change ingress hosts, image tags, resource limits-helm install multica deploy/helm/multica -n multica -f my-values.yaml+helm install multica oci://ghcr.io/multica-ai/charts/multica \+ --version <chart-version> \+ -n multica \+ -f my-values.yaml+```++When developing from a checkout, use the local chart path instead:++```bash+helm install multica deploy/helm/multica -n multica```Watch the pods come up:@@ -245,7 +259,9 @@ The chart defaults to `APP_ENV=production` (set in `values.yaml` under `backend.- **Deterministic local/private testing:** set `backend.config.appEnv: development` in your values file and `MULTICA_DEV_VERIFICATION_CODE=888888` in the Secret, then `helm upgrade` and restart. This fixed code is ignored when `APP_ENV=production`.```bash- helm upgrade multica deploy/helm/multica -n multica \+ helm upgrade multica oci://ghcr.io/multica-ai/charts/multica \+ --version <chart-version> \+ -n multica \-f my-values.yaml --set backend.config.appEnv=developmentkubectl -n multica patch secret multica-secrets --type=merge \-p '{"stringData":{"MULTICA_DEV_VERIFICATION_CODE":"888888"}}'@@ -270,13 +286,22 @@ Make sure the machine running the daemon has the same `/etc/hosts` (or DNS) entr### Updating-To pull the latest images without changing the chart version:+To pull the latest images without changing the chart version when your values still use the mutable `latest` image tag:```bashkubectl -n multica rollout restart deploy/multica-backend deploy/multica-frontend```-To pin a specific Multica release, set the image tags in your values file:+To upgrade to a specific Multica release, upgrade to the matching chart version. The released chart defaults its app images to the matching Git tag:++```bash+helm upgrade multica oci://ghcr.io/multica-ai/charts/multica \+ --version <chart-version> \+ -n multica \+ -f my-values.yaml+```++If you need to override the app images independently from the chart version, set the image tags in your values file:```yamlimages:@@ -286,10 +311,13 @@ images:tag: v0.2.4```-Then upgrade:+Then run the same upgrade command with `-f my-values.yaml`:```bash-helm upgrade multica deploy/helm/multica -n multica -f my-values.yaml+helm upgrade multica oci://ghcr.io/multica-ai/charts/multica \+ --version <chart-version> \+ -n multica \+ -f my-values.yaml```To roll back if an upgrade goes sideways:diff --git a/deploy/helm/multica/templates/backend.yaml b/deploy/helm/multica/templates/backend.yamlindex ef2b5b6c17..9d805c6ff0 100644--- a/deploy/helm/multica/templates/backend.yaml+++ b/deploy/helm/multica/templates/backend.yaml@@ -1,3 +1,4 @@+{{- $backendImageTag := default .Chart.AppVersion .Values.images.backend.tag -}}apiVersion: v1kind: PersistentVolumeClaimmetadata:@@ -52,7 +53,7 @@ spec:spec:containers:- name: backend- image: "{{ .Values.images.backend.repository }}:{{ .Values.images.backend.tag }}"+ image: "{{ .Values.images.backend.repository }}:{{ $backendImageTag }}"imagePullPolicy: {{ .Values.images.backend.pullPolicy }}ports:- containerPort: 8080diff --git a/deploy/helm/multica/templates/frontend.yaml b/deploy/helm/multica/templates/frontend.yamlindex 3eb2e9c62a..0c715168f9 100644--- a/deploy/helm/multica/templates/frontend.yaml+++ b/deploy/helm/multica/templates/frontend.yaml@@ -1,3 +1,4 @@+{{- $frontendImageTag := default .Chart.AppVersion .Values.images.frontend.tag -}}apiVersion: apps/v1kind: Deploymentmetadata:@@ -20,7 +21,7 @@ spec:spec:containers:- name: frontend- image: "{{ .Values.images.frontend.repository }}:{{ .Values.images.frontend.tag }}"+ image: "{{ .Values.images.frontend.repository }}:{{ $frontendImageTag }}"imagePullPolicy: {{ .Values.images.frontend.pullPolicy }}ports:- containerPort: 3000diff --git a/deploy/helm/multica/values.yaml b/deploy/helm/multica/values.yamlindex 4732b6da76..ff96de5fb9 100644--- a/deploy/helm/multica/values.yaml+++ b/deploy/helm/multica/values.yaml@@ -4,11 +4,14 @@images:backend:repository: ghcr.io/multica-ai/multica-backend- tag: latest+ # Empty defaults to Chart.appVersion. Released OCI charts set appVersion to+ # the Git tag (for example v0.3.5), so installs use matching app images.+ tag: ""pullPolicy: IfNotPresentfrontend:repository: ghcr.io/multica-ai/multica-web- tag: latest+ # Empty defaults to Chart.appVersion. Set explicitly to override.+ tag: ""pullPolicy: IfNotPresentpostgres:repository: pgvector/pgvector