Skip to content

Commit

Permalink
fix chart publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
bonddim committed Sep 23, 2024
1 parent a1e404f commit fdd9ee9
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit fdd9ee9

Please sign in to comment.