Skip to content

Commit

Permalink
Include publish-chart.yml to build process
Browse files Browse the repository at this point in the history
  • Loading branch information
xcompass committed Oct 3, 2024
1 parent 8056972 commit 9cddcbf
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/publish-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- "**.md"
- ".github/workflows/*"
- "!.github/workflows/publish.yaml"
- "!.github/workflows/publish-chart.yml"
branches-ignore:
- "dependabot/**"
- "pre-commit-ci-update-config"
Expand All @@ -24,7 +25,7 @@ env:
jobs:
release:
# this job will only run if the PR has been merged
if: github.event.client_payload.action == 'chart-release' || github.event.client_payload.action == 'chart-and-app-release'
#if: github.event.client_payload.action == 'chart-release' || github.event.client_payload.action == 'chart-and-app-release'
permissions:
# contents: write # for peter-evans/repository-dispatch to create a repository dispatch event
packages: write # to push OCI chart package to GitHub Registry
Expand All @@ -40,7 +41,7 @@ jobs:
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: 3.10
python-version: "3.10"
# - name: Setup Chart Linting
# id: lint
# uses: helm/chart-testing-action@v2
Expand Down Expand Up @@ -72,16 +73,15 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push chart to GHCR
run: |
shopt -s nullglob
for pkg in ${{ env.CR_PACKAGE_PATH }}/*.tgz; do
if [ -z "${pkg:-}" ]; then
break
fi
helm push "${pkg}" oci://${{ env.REGISTRY }}/${{ env.GH_OWNER }}/${{ env.HELM_REP }}
done
# - name: Push chart to GHCR
# run: |
# shopt -s nullglob
# for pkg in ${{ env.CR_PACKAGE_PATH }}/*.tgz; do
# if [ -z "${pkg:-}" ]; then
# break
# fi
# helm push "${pkg}" oci://${{ env.REGISTRY }}/${{ env.GH_OWNER }}/${{ env.HELM_REP }}
# done

# - name: Get latest tag
# id: latest_tag
Expand Down

0 comments on commit 9cddcbf

Please sign in to comment.