Merge pull request 'linting' (#3) from linting into main
Some checks failed
Package and publish helm chart / package-helm (push) Failing after 16s
Some checks failed
Package and publish helm chart / package-helm (push) Failing after 16s
Reviewed-on: #3
This commit is contained in:
commit
2180602e3a
@ -2,8 +2,7 @@ name: Package and publish helm chart
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
package-helm:
|
||||
runs-on: ubuntu-latest
|
||||
@ -27,8 +26,21 @@ jobs:
|
||||
dir_names_max_depth: '2'
|
||||
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
|
||||
shell: bash
|
||||
if: gitea.ref == 'refs/heads/main'
|
||||
env:
|
||||
PACKAGE_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
|
||||
CHART_NAME: ${{ steps.chart_name.outputs.result }}
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
image:
|
||||
repository: ghcr.io/home-assistant/home-assistant
|
||||
tag:
|
||||
|
Loading…
Reference in New Issue
Block a user