Skip to content

Commit b74e0d9

Browse files
authored
Small fixes and improvements (#22)
* Minor fixed and workflow changes - Bumped all charts - Updated workflow to use GH pages again - Updated foundry-vtt CI values to use dnsConfig - Fixed small non-breaking mistake in foundry-vtt deployment - Updated helm homepage with current chart versions * Fixed missing newline * Split lint and install into 2 jobs * Trigger workflows on workflow file change * Fixed lint job * Disabled PSP by default since it is now deprecated
1 parent d11619c commit b74e0d9

File tree

10 files changed

+92
-30
lines changed

10 files changed

+92
-30
lines changed

.github/workflows/chart-workflow.yaml

Lines changed: 75 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ on:
33
push:
44
paths:
55
- charts/**
6+
- .github/workflows/**
67
pull_request:
78
paths:
89
- charts/**
10+
- .github/workflows/**
911

1012
jobs:
11-
lint-test:
12-
name: "Lint and Test"
13+
lint-charts:
14+
name: Lint Charts
1315
runs-on: ubuntu-22.04
1416
steps:
1517
- name: "Checkout"
@@ -55,45 +57,98 @@ jobs:
5557
run: ct lint --config ct.yaml
5658
if: steps.list-changed.outputs.changed == 'true' && github.ref != 'refs/heads/main'
5759

60+
install-charts:
61+
name: Install Charts
62+
runs-on: ubuntu-22.04
63+
steps:
64+
- name: "Checkout"
65+
uses: actions/checkout@v2.4.2
66+
with:
67+
fetch-depth: 0
68+
69+
- name: "Set Up Helm"
70+
uses: azure/setup-helm@v3.3
71+
if: github.ref != 'refs/heads/main'
72+
with:
73+
version: v3.4.1
74+
75+
- name: "Set Up Python"
76+
uses: actions/setup-python@v4.2.0
77+
if: github.ref != 'refs/heads/main'
78+
with:
79+
python-version: 3.9
80+
81+
- name: "Set up chart-testing"
82+
uses: helm/chart-testing-action@v2.3.0
83+
if: github.ref != 'refs/heads/main'
84+
with:
85+
version: v3.3.0
86+
87+
- name: "Save Testing Values from Secret"
88+
shell: bash
89+
env:
90+
SECRET_VALUES: ${{ secrets.FOUNDRY_SECRET_VALUES }}
91+
run: echo "$SECRET_VALUES" | base64 -d > ./charts/foundry-vtt/ci/test-values.yaml
92+
if: github.ref != 'refs/heads/main'
93+
94+
- name: "Run chart-testing (list-changed)"
95+
id: list-changed
96+
if: github.ref != 'refs/heads/main'
97+
run: |
98+
changed=$(ct list-changed --config ct.yaml)
99+
if [[ -n "$changed" ]]; then
100+
echo "::set-output name=changed::true"
101+
fi
102+
58103
- name: Create kind cluster
59104
uses: helm/kind-action@v1.4.0
60105
if: steps.list-changed.outputs.changed == 'true' && github.ref != 'refs/heads/main'
61106

62107
- name: Run chart-testing (install)
63-
run: ct install --config ct.yaml
108+
run: ct install --config ct.yaml --debug
64109
if: steps.list-changed.outputs.changed == 'true' && github.ref != 'refs/heads/main'
65110

66-
- name: Get Branch name
67-
id: branch-name
68-
uses: tj-actions/branch-names@v6
69-
if: github.ref != 'refs/heads/main'
70-
71-
release_on_nexus:
111+
release-on-nexus:
72112
name: Release Chart on Nexus
73113
runs-on: ubuntu-22.04
74-
needs: lint-test
114+
needs:
115+
- lint-charts
116+
- install-charts
75117
if: github.ref == 'refs/heads/main'
76118
steps:
77119
- name: Checkout
78120
uses: actions/checkout@v2
79121
with:
122+
submodule: recursive
80123
fetch-depth: 0
81124

82125
- name: Configure Git
83126
run: |
84127
git config user.name "$GITHUB_ACTOR"
85128
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
86-
87-
- name: Install Helm
88-
uses: azure/setup-helm@v1
89-
with:
90-
version: v3.4.0
91-
92129
- name: Run chart-releaser
93-
uses: ntwklr/nexus-helm-chart-releaser-action@v0.0.5
130+
uses: helm/chart-releaser-action@v1.1.0
94131
env:
95132
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
133+
134+
- name: Setup Hugo
135+
uses: peaceiris/actions-hugo@v2
136+
with:
137+
hugo-version: 'latest'
138+
139+
- name: Build Hugo
140+
run: |
141+
git submodule init
142+
git submodule update
143+
cd hugo
144+
hugo --minify
145+
cp -r ./public ../public
146+
cd ..
147+
148+
- name: Deploy Hugo
149+
uses: peaceiris/actions-gh-pages@v3
96150
with:
97-
charts_repo_url: https://repo.mahahe.it/repository/helm/
98-
username: "${{ secrets.NEXUS_USERNAME }}"
99-
password: "${{ secrets.NEXUS_PASSWORD }}"
151+
github_token: ${{ secrets.GITHUB_TOKEN }}
152+
publish_dir: ./public
153+
cname: helm.mahahe.it
154+
keep_files: true

charts/foundry-vtt/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: foundry-vtt
33
description: Foundry Virtual Tabletop
44
type: application
5-
version: 0.1.1
5+
version: 0.1.2
66
appVersion: "v10.288"
77
keywords:
88
- game

charts/foundry-vtt/ci/test-values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ foundryvtt:
44
password: "password"
55
persistence:
66
enabled: false
7+
dnsConfig:
8+
options:
9+
- name: ndots
10+
value: "1"

charts/foundry-vtt/templates/deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ spec:
2424
securityContext:
2525
{{- toYaml .Values.podSecurityContext | nindent 8 }}
2626
dnsPolicy: "ClusterFirst"
27+
{{- if .Values.dnsConfig }}
2728
dnsConfig:
28-
{{- toYaml .Values.dnsConfig | indent 6 }}
29+
{{- toYaml .Values.dnsConfig | nindent 8 }}
30+
{{- end }}
2931
containers:
3032
- name: {{ .Chart.Name }}
3133
securityContext:

charts/prometheus-haproxy-exporter/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: prometheus-haproxy-exporter
33
description: A Helm chart to export the metrics from haproxy in Prometheus format.
4-
version: 0.1.3
4+
version: 0.1.4
55
appVersion: "v0.13.0"
66
keywords:
77
- haproxy-exporter

charts/prometheus-haproxy-exporter/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
## @param rbac.pspEnabled Specifies whether a PodSecurityPolicy should be created
88
rbac:
99
create: true
10-
pspEnabled: true
10+
pspEnabled: false
1111

1212
## @section serviceAccount
1313
## @param serviceAccount.create Specifies whether a ServiceAccount should be created

charts/prometheus-pve-exporter/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: prometheus-pve-exporter
33
description: A Helm chart to export the metrics from pve in Prometheus format.
4-
version: 0.1.14
4+
version: 0.1.15
55
appVersion: "2.2.3"
66
keywords:
77
- pve-exporter

charts/prometheus-pve-exporter/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ rbac:
66
# Specifies whether RBAC resources should be created
77
create: true
88
# Specifies whether a PodSecurityPolicy should be created
9-
pspEnabled: true
9+
pspEnabled: false
1010

1111
serviceAccount:
1212
# Specifies whether a ServiceAccount should be created

charts/youtrack/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: youtrack
33
description: A Helm chart to install YouTrack in your Kubernetes Cluster
4-
version: 0.1.8
4+
version: 0.1.9
55
appVersion: "2022.2"
66
keywords:
77
- youtrack

hugo/content/index.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ Welcome to the Official MaHaHe Helm Repository! Here you will find various appli
1414

1515
The Applications we offer at the moment are listed down here. Watch this website often to discover new applications and new versions for them.
1616

17-
- ```Prometheus PVE Exporter@0.1.10```
18-
- ```Prometheus Haproxy Exporter@0.1.1```
19-
- ```YouTrack@0.1.3```
17+
- ```Prometheus PVE Exporter@0.1.14```
18+
- ```Prometheus Haproxy Exporter@0.1.3```
19+
- ```YouTrack@0.1.8```
20+
- ```FoundryVTT@0.1.1```
2021

2122
#### License
2223

0 commit comments

Comments
 (0)