Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
0d9a47f208 | ||
e211d43dc7 | |||
|
224c1ccd2f | ||
|
f924f986a9 | ||
2ae5f80aa4 | |||
|
db1b814416 | ||
8753852318 | |||
|
fef72ffc1a | ||
35fbb3534e |
@@ -32,9 +32,7 @@ jobs:
|
|||||||
- name: build helm package
|
- name: build helm package
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }}
|
PACKAGE_TOKEN: ${{ secrets.REPO_HOST }}
|
||||||
REPO_USERNAME: ${{ secrets.REPO_USERNAME }}
|
|
||||||
REPO_HOST: ${{ secrets.REPO_HOST }}
|
|
||||||
CHART_NAME: ${{ steps.chart_name.outputs.result }}
|
CHART_NAME: ${{ steps.chart_name.outputs.result }}
|
||||||
CHART_VERSION: ${{ steps.chart_version.outputs.result }}
|
CHART_VERSION: ${{ steps.chart_version.outputs.result }}
|
||||||
run: |
|
run: |
|
||||||
@@ -42,5 +40,4 @@ jobs:
|
|||||||
mkdir /tmp/build
|
mkdir /tmp/build
|
||||||
cd /tmp/build
|
cd /tmp/build
|
||||||
helm package $REPO_PATH
|
helm package $REPO_PATH
|
||||||
helm registry login --username $REPO_USERNAME --password $REPO_PASSWORD $REPO_HOST
|
curl -H "Authorization: token $PACKAGE_TOKEN" -X POST --upload-file $CHART_NAME-$CHART_VERSION.tgz https://git.rre.nu/api/packages/jonas/helm/api/charts
|
||||||
helm push ${CHART_NAME}-${CHART_VERSION}.tgz oci://$REPO_HOST/helm
|
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,6 +5,7 @@ bin/*
|
|||||||
.project
|
.project
|
||||||
/.bin
|
/.bin
|
||||||
/_test/secrets/*.json
|
/_test/secrets/*.json
|
||||||
|
*.tgz
|
||||||
|
|
||||||
# OSX leaves these everywhere on SMB shares
|
# OSX leaves these everywhere on SMB shares
|
||||||
._*
|
._*
|
||||||
|
@@ -3,7 +3,7 @@ apiVersion: v2
|
|||||||
name: lib
|
name: lib
|
||||||
description: Common functions for my helm charts at home
|
description: Common functions for my helm charts at home
|
||||||
type: library
|
type: library
|
||||||
version: 1.0.0
|
version: 1.0.3
|
||||||
kubeVersion: ">=1.27.0"
|
kubeVersion: ">=1.27.0"
|
||||||
home: git.rre.nu
|
home: git.rre.nu
|
||||||
sources:
|
sources:
|
||||||
|
@@ -4,6 +4,7 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "lib.fullname" . }}
|
name: {{ include "lib.fullname" . }}
|
||||||
|
namespace: {{ .Values.namespace }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "lib.labels" . | nindent 4 }}
|
{{- include "lib.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
|
@@ -40,8 +40,14 @@ create the environment varable list
|
|||||||
resources:
|
resources:
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.volumeMounts }}
|
{{- if or .Values.volumeMounts .Values.volumeClaimTemplates }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.volumeMounts }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- range $v := .Values.volumeClaimTemplates }}
|
||||||
|
- name: {{ $v.name }}
|
||||||
|
mountPath: {{ $v.mountPath }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
Reference in New Issue
Block a user