Compare commits

...

5 Commits

Author SHA1 Message Date
2180602e3a Merge pull request 'linting' (#3) from linting into main
Some checks failed
Package and publish helm chart / package-helm (push) Failing after 16s
Reviewed-on: #3
2024-11-11 15:07:15 +00:00
Jonas Forsberg
583643bcab trigger pipeline
All checks were successful
Package and publish helm chart / package-helm (push) Successful in 15s
2024-11-11 16:06:32 +01:00
Jonas Forsberg
e0864adab0 added dependecy build 2024-11-11 16:06:03 +01:00
Jonas Forsberg
6cd276eaa3 trigger pipeline 2024-11-11 16:03:36 +01:00
Jonas Forsberg
0a72a599f7 added linting, only build on main branch 2024-11-11 16:02:40 +01:00
2 changed files with 14 additions and 3 deletions

View File

@ -2,8 +2,7 @@ name: Package and publish helm chart
on: on:
push: push:
branches:
- main
jobs: jobs:
package-helm: package-helm:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -27,8 +26,21 @@ jobs:
dir_names_max_depth: '2' dir_names_max_depth: '2'
files: 'charts/**' files: 'charts/**'
- name: Run helm lint on all changed charts
shell: bash
env:
ALL_CHANGED_CHARTS: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
REPO_PATH=$(git rev-parse --show-toplevel)
for chart in ${ALL_CHANGED_CHARTS}; do
cd ${REPO_PATH}/${chart}
helm dependency build
helm lint .
done
- name: build helm package - name: build helm package
shell: bash shell: bash
if: gitea.ref == 'refs/heads/main'
env: env:
PACKAGE_TOKEN: ${{ secrets.PACKAGE_TOKEN }} PACKAGE_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
CHART_NAME: ${{ steps.chart_name.outputs.result }} CHART_NAME: ${{ steps.chart_name.outputs.result }}

View File

@ -1,4 +1,3 @@
image: image:
repository: ghcr.io/home-assistant/home-assistant repository: ghcr.io/home-assistant/home-assistant
tag: tag: