run helm release on main only and when the chart/value changes only (#9290)
Signed-off-by: James Strong <strong.james.e@gmail.com> Signed-off-by: James Strong <strong.james.e@gmail.com>
This commit is contained in:
parent
69a811dde9
commit
3db3c19685
1 changed files with 4 additions and 5 deletions
9
.github/workflows/helm.yaml
vendored
9
.github/workflows/helm.yaml
vendored
|
@ -4,7 +4,6 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- legacy
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
@ -34,7 +33,7 @@ jobs:
|
||||||
filters: |
|
filters: |
|
||||||
charts:
|
charts:
|
||||||
- 'charts/ingress-nginx/Chart.yaml'
|
- 'charts/ingress-nginx/Chart.yaml'
|
||||||
- 'charts/ingress-nginx/**/*'
|
- 'charts/ingress-nginx/values.yaml'
|
||||||
|
|
||||||
chart:
|
chart:
|
||||||
name: Release Chart
|
name: Release Chart
|
||||||
|
@ -52,7 +51,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout master
|
- name: Checkout master
|
||||||
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.0.2
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
||||||
with:
|
with:
|
||||||
# Fetch entire history. Required for chart-releaser; see https://github.com/helm/chart-releaser-action/issues/13#issuecomment-602063896
|
# Fetch entire history. Required for chart-releaser; see https://github.com/helm/chart-releaser-action/issues/13#issuecomment-602063896
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
@ -64,10 +63,10 @@ jobs:
|
||||||
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
||||||
|
|
||||||
- name: Helm Chart Releaser
|
- name: Helm Chart Releaser
|
||||||
uses: helm/chart-releaser-action@v1.4.1
|
uses: helm/chart-releaser-action@98bccfd32b0f76149d188912ac8e45ddd3f8695f #v1.4.1
|
||||||
env:
|
env:
|
||||||
CR_SKIP_EXISTING: "false"
|
CR_SKIP_EXISTING: "false"
|
||||||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
CR_RELEASE_NAME_TEMPLATE: "helm-chart-{{ .Version }}"
|
CR_RELEASE_NAME_TEMPLATE: "helm-chart-{{ .Version }}"
|
||||||
with:
|
with:
|
||||||
charts_dir: charts
|
charts_dir: charts
|
Loading…
Reference in a new issue