Skip to content

Commit 1058652

Browse files
authored
Merge branch 'master' into MG-143
2 parents 6d68960 + 585ec3b commit 1058652

File tree

5 files changed

+96
-4
lines changed

5 files changed

+96
-4
lines changed

.github/workflows/lint-test.yaml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Copyright (c) Magistrala
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
name: Lint and Test Charts
5+
6+
on: pull_request
7+
8+
jobs:
9+
lint-test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Code
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Set up Helm
18+
uses: azure/[email protected]
19+
with:
20+
version: v3.15.4
21+
22+
- uses: actions/setup-python@v5
23+
with:
24+
python-version: "3.x"
25+
check-latest: true
26+
27+
- name: Set up chart-testing
28+
uses: helm/[email protected]
29+
30+
- name: Run chart-testing (list-changed)
31+
id: list-changed
32+
run: |
33+
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
34+
if [[ -n "$changed" ]]; then
35+
echo "changed=true" >> "$GITHUB_OUTPUT"
36+
fi
37+
38+
- name: Run chart-testing (lint)
39+
if: steps.list-changed.outputs.changed == 'true'
40+
run: ct lint --target-branch ${{ github.event.repository.default_branch }}
41+
42+
- name: Create kind cluster
43+
if: steps.list-changed.outputs.changed == 'true'
44+
uses: helm/[email protected]
45+
46+
- name: Run chart-testing (install)
47+
if: steps.list-changed.outputs.changed == 'true'
48+
run: ct install --target-branch ${{ github.event.repository.default_branch }}

.github/workflows/release.yaml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Copyright (c) Magistrala
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
name: Release Charts
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
release:
13+
permissions:
14+
contents: write
15+
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout Code
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Configure Git
24+
run: |
25+
git config user.name "$GITHUB_ACTOR"
26+
git config user.email "[email protected]"
27+
28+
- name: Set up Helm
29+
uses: azure/[email protected]
30+
with:
31+
version: v3.15.4
32+
33+
- name: Add Dependencies
34+
run: |
35+
helm repo add stable https://charts.helm.sh/stable
36+
helm repo add bitnami https://charts.bitnami.com/bitnami
37+
helm repo add jaegertracing https://jaegertracing.github.io/helm-charts
38+
helm repo add hashicorp https://helm.releases.hashicorp.com
39+
helm repo add nats https://nats-io.github.io/k8s/helm/charts/
40+
helm repo update
41+
42+
- name: Run chart-releaser
43+
uses: helm/[email protected]
44+
env:
45+
CR_TOKEN: "${{ secrets.HELM_RELEASE_TOKEN }}"

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## DevOps
22

3-
DevOps scripts for Magistrala IoT platform.
3+
DevOps scripts for Magistrala IoT platform
44

55
## Install
66

charts/magistrala/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ name: magistrala
66
description: Magistrala IoT Platform
77
icon: https://avatars1.githubusercontent.com/u/13207490
88
type: application
9-
version: 1.0.3
10-
appVersion: "0.12.1"
9+
version: 1.0.4 # Incremented chart version if the chart is updated
10+
appVersion: "0.12.2" # Update application version if the app is updated
1111
home: https://abstractmachines.fr/magistrala.html
1212
sources:
1313
- https://hub.docker.com/u/magistrala

charts/magistrala/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -309,4 +309,3 @@ Magistrala IoT Platform
309309
| users.secretKey | string | `"secretKey"` | |
310310
| users.tokenResetEndpoint | string | `"/reset-request"` | |
311311
| vault.enabled | bool | `false` | |
312-

0 commit comments

Comments
 (0)