Compare commits
No commits in common. "main" and "fix_build" have entirely different histories.
@ -2,7 +2,9 @@ name: Package and publish helm chart
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
# Pattern matched against refs/tags
|
||||
tags:
|
||||
- '**' # Push events to every tag including hierarchical tags like v1.0/beta
|
||||
jobs:
|
||||
package-helm:
|
||||
runs-on: ubuntu-latest
|
||||
@ -27,19 +29,15 @@ jobs:
|
||||
with:
|
||||
cmd: yq .version Chart.yaml
|
||||
|
||||
- name: Run helm lint on all changed charts
|
||||
shell: bash
|
||||
run: |
|
||||
helm dependency build
|
||||
helm lint .
|
||||
|
||||
- name: build helm package
|
||||
if: gitea.ref == 'refs/heads/main'
|
||||
shell: bash
|
||||
env:
|
||||
PACKAGE_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
|
||||
PACKAGE_TOKEN: ${{ secrets.REPO_HOST }}
|
||||
CHART_NAME: ${{ steps.chart_name.outputs.result }}
|
||||
CHART_VERSION: ${{ steps.chart_version.outputs.result }}
|
||||
run: |
|
||||
helm package .
|
||||
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
|
||||
REPO_PATH=$(git rev-parse --show-toplevel)
|
||||
mkdir /tmp/build
|
||||
cd /tmp/build
|
||||
helm package $REPO_PATH
|
||||
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
|
26
.gitea/workflows/lint.yaml
Normal file
26
.gitea/workflows/lint.yaml
Normal file
@ -0,0 +1,26 @@
|
||||
name: Lint and Test Charts
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
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@v4.2.0
|
||||
with:
|
||||
version: v3.14.4
|
||||
|
||||
- name: Lint the helm package
|
||||
env:
|
||||
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
|
||||
run: |
|
||||
helm lint ./
|
@ -3,7 +3,7 @@ apiVersion: v2
|
||||
name: lib
|
||||
description: Common functions for my helm charts at home
|
||||
type: library
|
||||
version: 1.0.4
|
||||
version: 1.0.3
|
||||
kubeVersion: ">=1.27.0"
|
||||
home: git.rre.nu
|
||||
sources:
|
||||
|
@ -36,10 +36,6 @@ spec:
|
||||
{{- toYaml .Values.controller.podSecurityContext | nindent 8 }}
|
||||
containers:
|
||||
{{- include "lib.parts.container" . | nindent 8 -}}
|
||||
{{- with .Values.volumes }}
|
||||
volumes:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
|
Loading…
Reference in New Issue
Block a user