Skip to content

chore: bump chart version (#62) #11

chore: bump chart version (#62)

chore: bump chart version (#62) #11

Workflow file for this run

name: Build and Push Helm Package
on:
push:
tags:
- "*"
jobs:
helm:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Set up Helm
run: |
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
helm version
- name: Log in to Helm OCI Registry
run: |
helm registry login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
helm registry login ${MTR} -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}
env:
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
MTR: mtr.devops.telekom.de
- name: Helm Lint, Package, and Push
run: |
cd chart
helm lint .
helm package .
helm push $(ls *.tgz | head -1) oci://ghcr.io/caas-team/charts
helm push $(ls *.tgz | head -1) oci://${MTR}/${REPO}/charts
env:
MTR: mtr.devops.telekom.de
REPO: caas
- name: Extract Chart Version
id: chart_version
run: |
version=$(yq e '.version' ./chart/Chart.yaml)
echo "::set-output name=version::$version"
- name: Dispatch Event to Helm-Charts Repo
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
repository: caas-team/helm-charts
event-type: new-helm-chart-version
client-payload: '{"chart": "py-kube-downscaler", "version": "${{ steps.chart_version.outputs.version }}"}'