Skip to content

Commit

Permalink
🐛 (memos): Set MEMOS_PORT to fix startup failures
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed May 27, 2023
1 parent 1baf213 commit 6b294f4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
6 changes: 3 additions & 3 deletions charts/memos/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A lightweight, self-hosted memo hub. Open Source and Free forever.
home: https://charts.gabe565.com/charts/memos/
icon: https://raw.githubusercontent.com/gabe565/charts/main/charts/memos/icon.png
type: application
version: 0.5.1
version: 0.5.2
# renovate datasource=docker depName=ghcr.io/usememos/memos
appVersion: 0.13.1
kubeVersion: ">=1.22.0-0"
Expand All @@ -20,8 +20,8 @@ sources:
- https://github.com/usememos/memos
annotations:
artifacthub.io/changes: |-
- kind: changed
description: Update ghcr.io/usememos/memos Docker tag to v0.13.1
- kind: fixed
description: Set `MEMOS_PORT` to fix startup failures
artifacthub.io/links: |-
- name: App Source
url: https://github.com/usememos/memos
Expand Down
4 changes: 2 additions & 2 deletions charts/memos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<img src="https://raw.githubusercontent.com/gabe565/charts/main/charts/memos/icon.png" align="right" width="92" alt="memos logo">

![Version: 0.5.1](https://img.shields.io/badge/Version-0.5.1-informational?style=flat)
![Version: 0.5.2](https://img.shields.io/badge/Version-0.5.2-informational?style=flat)
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat)
![AppVersion: 0.13.1](https://img.shields.io/badge/AppVersion-0.13.1-informational?style=flat)

Expand All @@ -11,7 +11,7 @@ A lightweight, self-hosted memo hub. Open Source and Free forever.
**Homepage:** <https://charts.gabe565.com/charts/memos/>

**This chart is not maintained by the upstream project and any issues with the chart should be raised
[here](https://github.com/gabe565/charts/issues/new?assignees=gabe565&labels=bug&template=bug_report.yaml&name=memos&version=0.5.1)**
[here](https://github.com/gabe565/charts/issues/new?assignees=gabe565&labels=bug&template=bug_report.yaml&name=memos&version=0.5.2)**

## Source Code

Expand Down
8 changes: 8 additions & 0 deletions charts/memos/templates/common.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
{{/* Append the hardcoded settings */}}
{{- define "memos.harcodedValues" -}}
env:
MEMOS_PORT: {{ .Values.service.main.ports.http.port }}
{{- end -}}
{{- $_ := merge .Values (include "memos.harcodedValues" . | fromYaml) -}}

{{/* Render the templates */}}
{{ include "bjw-s.common.loader.all" . }}

0 comments on commit 6b294f4

Please sign in to comment.