Added release job.

This commit is contained in:
2024-12-05 13:37:50 +01:00
parent 9fb0115858
commit 5643e8f4d9

31
.github/workflows/release.yaml vendored Normal file
View File

@ -0,0 +1,31 @@
name: Releasing charts
on:
push:
branches:
- main
- master
jobs:
upload_helm:
runs-on: ubuntu-latest
strategy:
matrix:
chart:
- py-app
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: azure/setup-helm@v4.2.0
with:
version: latest
- name: Build Helm chart
run: |
helm package --app-version "${{ github.ref_name }}" --dependency-update ./charts/${{ matrix.chart }}
helm show chart *.tgz
helm registry login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io
helm push *.tgz oci://ghcr.io/intreecom/charts
env:
HELM_EXPERIMENTAL_OCI: 1