fix chart publishing

This commit is contained in:
Dmytro Bondar 2024-09-22 14:38:47 +02:00
parent a1e404f095
commit fdd9ee9304
No known key found for this signature in database
GPG Key ID: C123CD37BBED8BB7

View File

@ -49,11 +49,8 @@ jobs:
- name: Run chart-testing (install)
run: ct install --config ct.yaml
- name: Run helm package charts
run: |
for chart in $(ct list-changed --config ct.yaml); do
helm package $chart -d out
done
- name: Check chart packaging
run: helm package deploy/helm
publish:
runs-on: ubuntu-latest
@ -69,16 +66,8 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: helm/chart-testing-action@v2
- name: Run helm package charts
run: |
for chart in $(ct list-changed --config ct.yaml); do
helm package $chart -d out
done
- name: Package helm chart
run: helm package deploy/helm
- name: Push chart to GHCR
working-directory: out
run: |
for pkg in $(ls *.tgz); do
helm push $pkg oci://ghcr.io/${{ github.repository_owner }}/charts
done
run: helm push wg-portal-*.tgz oci://ghcr.io/${{ github.repository_owner }}/charts