Skip to content

Commit

Permalink
Added actions to publish charts to github container registry
Browse files Browse the repository at this point in the history
Signed-off-by: Allen Conlon <[email protected]>
  • Loading branch information
a1994sc committed Jan 5, 2025
1 parent 79d016e commit 403ef23
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish-charts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ jobs:
runs-on: ubuntu-latest
needs:
- test-charts
permissions:
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -114,6 +116,25 @@ jobs:
helm package charts/$dir -d .cr-release-packages
done
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to OCI registry (ghcr.io)
shell: bash
working-directory: redis-operator
run: |
shopt -s nullglob
for pkg in .cr-release-packages/*; do
if [ -z "${pkg:-}" ]; then
break
fi
helm push "${pkg}" "oci://ghcr.io/ot-container-kit/charts"
done
- name: Install chart-releaser
uses: helm/[email protected]
with:
Expand Down

0 comments on commit 403ef23

Please sign in to comment.