Skip to content

Commit

Permalink
👷 (ci): Add OCI Helm push
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Aug 2, 2023
1 parent 72ca5d9 commit b3408b6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

permissions:
contents: write
packages: write
pages: write
id-token: write

Expand Down Expand Up @@ -50,6 +51,23 @@ jobs:
CR_SKIP_EXISTING: "true"
CR_PAGES_BRANCH: helm-index

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}

- name: Push charts to GHCR
run: |
for pkg in .cr-release-packages/*; do
if [ -z "${pkg:-}" ]; then
break
fi
echo "Pushing $pkg..."
helm push "$pkg" "oci://ghcr.io/$GITHUB_REPOSITORY_OWNER/charts"
done
build-docs:
name: Build Docs
runs-on: ubuntu-latest
Expand Down

0 comments on commit b3408b6

Please sign in to comment.