ci(releaser): use changed_charts output so only these charts are pushed
This commit is contained in:
parent
0f393d1fbf
commit
e6c682248b
1 changed files with 5 additions and 7 deletions
10
.github/workflows/release.yaml
vendored
10
.github/workflows/release.yaml
vendored
|
@ -31,6 +31,7 @@ jobs:
|
||||||
version: v3.17.1
|
version: v3.17.1
|
||||||
|
|
||||||
- name: Run chart-releaser
|
- name: Run chart-releaser
|
||||||
|
id: releaser
|
||||||
uses: helm/chart-releaser-action@cae68fefc6b5f367a0275617c9f83181ba54714f # v1.7.0
|
uses: helm/chart-releaser-action@cae68fefc6b5f367a0275617c9f83181ba54714f # v1.7.0
|
||||||
with:
|
with:
|
||||||
charts_dir: charts
|
charts_dir: charts
|
||||||
|
@ -48,10 +49,7 @@ jobs:
|
||||||
|
|
||||||
- name: Push charts to GHCR
|
- name: Push charts to GHCR
|
||||||
run: |
|
run: |
|
||||||
shopt -s nullglob
|
IFS=',' read -ra CHARTS <<< "${{ steps.releaser.outputs.changed_charts }}"
|
||||||
for pkg in .cr-release-packages/*.tgz; do
|
for chart in "${CHARTS[@]}"; do
|
||||||
if [ -z "${pkg:-}" ]; then
|
helm push "charts/${chart}" "oci://ghcr.io/${GITHUB_REPOSITORY}"
|
||||||
break
|
|
||||||
fi
|
|
||||||
helm push "${pkg}" "oci://ghcr.io/${GITHUB_REPOSITORY}"
|
|
||||||
done
|
done
|
Loading…
Add table
Add a link
Reference in a new issue