Skip to content

Commit

Permalink
Push charts to ghcr.io as OCI (#3433)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan-Otto Kröpke <[email protected]>
  • Loading branch information
jkroepke authored May 26, 2023
1 parent 4fd5837 commit 2dfea3a
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,26 @@ jobs:
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

# # see https://github.com/helm/chart-releaser/issues/183
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v2
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# see https://github.com/helm/chart-releaser/issues/183
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push charts to GHCR
run: |
shopt -s nullglob
for pkg in .cr-release-packages/*; do
if [ -z "${pkg:-}" ]; then
break
fi
if ! helm push "${pkg}" "oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/charts"; then
echo '::warning:: helm push failed!'
fi
done
# - uses: sigstore/[email protected]
# - name: Push charts to GHCR and sign
Expand Down

0 comments on commit 2dfea3a

Please sign in to comment.