Add helm chart

This commit is contained in:
2022-06-09 10:11:17 +01:00
parent 6fd8a2e8bd
commit e8e41bbfef
7 changed files with 103 additions and 0 deletions

32
.github/workflows/release-chart.yaml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: Release Helm Chart
"on":
push:
branches:
- main
paths:
- "charts/**/Chart.yaml"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.6.3
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.2.1
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_RELEASE_NAME_TEMPLATE: "smsbot-helm-chart-{{ .Version }}"

6
charts/smsbot/Chart.lock Normal file
View File

@@ -0,0 +1,6 @@
dependencies:
- name: common
repository: https://library-charts.k8s-at-home.com
version: 4.0.0
digest: sha256:0c6cd85b0c4a451d01fcbbe16ae1d969d2cf323e053944d6c543113b6a281f88
generated: "2021-12-23T18:33:24.377986Z"

18
charts/smsbot/Chart.yaml Normal file
View File

@@ -0,0 +1,18 @@
apiVersion: v2
appVersion: 0.0.2
description: A simple Telegram bot to receive SMS messages.
name: smsbot
version: 0.0.2
kubeVersion: ">=1.19.0-0"
keywords:
- smsbot
home: https://github.com/nikdoof/smsbot/tree/main/charts/smsbot
sources:
- https://github.com/nikdoof/smsbot
maintainers:
- name: nikdoof
email: nikdoof@users.noreply.github.com
dependencies:
- name: common
repository: https://library-charts.k8s-at-home.com
version: 4.3.0

View File

@@ -0,0 +1,10 @@
env:
SMSBOT_TELEGRAM_BOT_TOKEN: xxxx
ingress:
main:
enabled: true
hosts:
- host: smsbot.domain.tld
paths:
- path: /
pathType: Prefix

View File

@@ -0,0 +1 @@
{{ include "common.notes.defaultNotes" . }}

View File

@@ -0,0 +1 @@
{{ include "common.all" . }}

35
charts/smsbot/values.yaml Normal file
View File

@@ -0,0 +1,35 @@
#
# IMPORTANT NOTE
#
# This chart inherits from the k8s@home library chart. You can check the default values/options here:
# https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common/values.yaml
#
image:
# -- image repository
repository: ghcr.io/nikdoof/smsbot
# -- image pull policy
pullPolicy: IfNotPresent
# -- image tag
tag: 0.0.2
# -- environment variables.
# @default -- See below
env:
# -- Set the container timezone
TZ: UTC
# SMSBOT_TELEGRAM_BOT_TOKEN:
# -- Configures service settings for the chart.
# @default -- See values.yaml
service:
main:
ports:
http:
port: 80
ingress:
# -- Enable and configure ingress settings for the chart under this key.
# @default -- See values.yaml
main:
enabled: false