Compare commits

...

6 Commits

Author SHA1 Message Date
ffcaf51b66 add envFrom 2024-02-10 04:08:58 -07:00
30d69f695c change readme 2024-02-10 03:32:06 -07:00
c5feb14abc change names 2024-02-10 03:17:12 -07:00
5665d7a99f add lint 2024-02-10 03:13:00 -07:00
5158f9f66c update release workflow 2024-02-10 03:11:14 -07:00
e9bed237bf add example workflow 2024-02-10 03:00:58 -07:00
6 changed files with 91 additions and 2 deletions

45
.github/workflows/lint-test.yaml vendored Normal file
View File

@@ -0,0 +1,45 @@
name: lint-and-test-charts
on: pull_request
jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: v3.13.3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
check-latest: true
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.6.0
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --target-branch ${{ github.event.repository.default_branch }}
- name: Create kind cluster
if: steps.list-changed.outputs.changed == 'true'
uses: helm/kind-action@v1.8.0
- name: Run chart-testing (install)
if: steps.list-changed.outputs.changed == 'true'
run: ct install --target-branch ${{ github.event.repository.default_branch }}

27
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: release-charts
on:
push:
branches:
- main
jobs:
release:
permissions:
contents: write
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: Run chart-releaser
uses: helm/chart-releaser-action@v1.6.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

View File

@@ -1,9 +1,21 @@
# Welcome
Welcome to the documentation for the [alexlebens's Helm charts](https://github.com/alexlebens/helm-charts).
## Getting started
[Helm](https://helm.sh) must be installed to use the charts in this repository.
Refer to Helm's [documentation](https://helm.sh/docs/) to get started.
## Installation
```sh
helm repo add alexlebens http://alexlebens.github.io/helm-charts/
```
You can then run `helm search repo alexlebens` to search the charts.
## License
This project is licensed under the terms of the Apache 2.0 License license.
This project is licensed under the terms of the Apache 2.0 License license.

View File

@@ -1,6 +1,6 @@
apiVersion: v2
name: homepage
version: 0.0.1
version: 0.0.2
description: Chart for benphelps homepage
keywords:
- dashboard

View File

@@ -40,6 +40,10 @@ spec:
- name: {{ $k }}
value: {{ $v | quote }}
{{- end }}
{{- with .Values.deployment.envFrom }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
volumeMounts:
- name: homepage-config
subPath: bookmarks.yaml

View File

@@ -6,6 +6,7 @@ deployment:
tag: v0.8.7
imagePullPolicy: IfNotPresent
env:
envFrom:
resources:
requests:
memory: 50Mi