-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MG-140 - Create HELM repo with GitHub or any with other provider (#142)
* feat: Add helm chart release workflow Signed-off-by: JeffMboya <[email protected]> feat: Add helm chart release workflow Signed-off-by: JeffMboya <[email protected]> * feat: Package MG helm chart Signed-off-by: JeffMboya <[email protected]> * feat: Add index.yaml file Signed-off-by: JeffMboya <[email protected]> * feat:Update helm chart-releaser-action to v1.6.0 Signed-off-by: JeffMboya <[email protected]> * feat: Add spaces Signed-off-by: JeffMboya <[email protected]> * feat: remove index.yaml Signed-off-by: JeffMboya <[email protected]> * feat: add charts_dir Signed-off-by: JeffMboya <[email protected]> * feat: Add config file for helm chart-releaser-action Signed-off-by: JeffMboya <[email protected]> * feat: Add config file for helm chart-releaser-action Signed-off-by: JeffMboya <[email protected]> * feat: Add dependecies to release.yaml Signed-off-by: JeffMboya <[email protected]> * feat: Add lint and test workflow for Helm charts Signed-off-by: JeffMboya <[email protected]> * feat: Update README Signed-off-by: JeffMboya <[email protected]> * feat: Add lint-test and reusable workflow Signed-off-by: JeffMboya <[email protected]> * Feat: Add inedx.yml Signed-off-by: JeffMboya <[email protected]> * Feat: restructure chart directory Signed-off-by: JeffMboya <[email protected]> * Feat: Update README Signed-off-by: JeffMboya <[email protected]> * Feat: Run release workflow on all branches Signed-off-by: JeffMboya <[email protected]> * Feat: Update README Signed-off-by: JeffMboya <[email protected]> * Feat: Update release.yaml Signed-off-by: JeffMboya <[email protected]> * Feat: Update chart version Signed-off-by: JeffMboya <[email protected]> * Feat: Update chart path Signed-off-by: JeffMboya <[email protected]> * Feat: Update chart path Signed-off-by: JeffMboya <[email protected]> * Feat: Update chart path Signed-off-by: JeffMboya <[email protected]> * Delete magistrala-charts dir Signed-off-by: JeffMboya <[email protected]> * rename common workflow Signed-off-by: JeffMboya <[email protected]> * Remove common workflow Signed-off-by: JeffMboya <[email protected]> * remove charts_dir and config parameters from release.yaml Signed-off-by: JeffMboya <[email protected]> * delete cr.yml file Signed-off-by: JeffMboya <[email protected]> --------- Signed-off-by: JeffMboya <[email protected]>
- Loading branch information
Showing
5 changed files
with
142 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Copyright (c) Magistrala | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Lint and Test Charts | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
lint-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Helm | ||
uses: azure/[email protected] | ||
with: | ||
version: v3.15.4 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.x" | ||
check-latest: true | ||
|
||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
- name: Run chart-testing (list-changed) | ||
id: list-changed | ||
run: | | ||
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) | ||
if [[ -n "$changed" ]]; then | ||
echo "changed=true" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Run chart-testing (lint) | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: ct lint --target-branch ${{ github.event.repository.default_branch }} | ||
|
||
- name: Create kind cluster | ||
if: steps.list-changed.outputs.changed == 'true' | ||
uses: helm/[email protected] | ||
|
||
- name: Run chart-testing (install) | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: ct install --target-branch ${{ github.event.repository.default_branch }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Copyright (c) Magistrala | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Release Charts | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
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: Run chart-releaser | ||
uses: helm/[email protected] | ||
env: | ||
CR_TOKEN: "${{ secrets.HELM_RELEASE_TOKEN }}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
## DevOps | ||
|
||
DevOps scripts for Magistrala IoT platform. | ||
DevOps scripts for Magistrala IoT platform | ||
|
||
## Install | ||
|
||
|
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
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