NOISSUE - Align chart releases with Magistrala versions (#149) #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) Magistrala | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Release Charts | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
release: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
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: Set up Helm | |
uses: azure/[email protected] | |
with: | |
version: v3.15.4 | |
- name: Add Dependencies | |
run: | | |
helm repo add stable https://charts.helm.sh/stable | |
helm repo add bitnami https://charts.bitnami.com/bitnami | |
helm repo add jaegertracing https://jaegertracing.github.io/helm-charts | |
helm repo add hashicorp https://helm.releases.hashicorp.com | |
helm repo add nats https://nats-io.github.io/k8s/helm/charts/ | |
helm repo update | |
- name: Update Helm dependencies | |
run: | | |
helm dependency update charts/magistrala | |
- name: Run chart-releaser | |
uses: helm/[email protected] | |
env: | |
CR_TOKEN: "${{ secrets.HELM_RELEASE_TOKEN }}" |