Skip to content

Added push to OCI to the release workflow (#2) #4

Added push to OCI to the release workflow (#2)

Added push to OCI to the release workflow (#2) #4

name: Release Charts
on:
push:
branches:
- main
jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Run chart-releaser
uses: helm/[email protected]
with:
charts_dir: helm/charts/mcp
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Upload to OCI-based registry
run: |
helm registry login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
find .cr-release-packages/ -name *.tgz -exec helm push oci://ghcr.io/openmcp-project {} \;