Skip to content

Commit 5b11e46

Browse files
authored
Merge pull request #2 from Anmol1696/anmol/ci
Rename directory, add ci
2 parents bec3477 + b3de62b commit 5b11e46

File tree

18 files changed

+66
-0
lines changed

18 files changed

+66
-0
lines changed

.github/workflows/lint-check.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Lint and Test Charts
2+
3+
on: pull_request
4+
5+
jobs:
6+
lint-test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v2
11+
with:
12+
fetch-depth: 0
13+
14+
- name: Install Helm
15+
uses: azure/setup-helm@v1
16+
17+
- uses: actions/setup-python@v2
18+
with:
19+
python-version: 3.7
20+
21+
- name: Install chart-testing
22+
uses: helm/[email protected]
23+
24+
- name: Run chart-testing (list-changed)
25+
id: list-changed
26+
run: |
27+
changed=$(ct list-changed)
28+
if [[ -n "$changed" ]]; then
29+
echo "::set-output name=changed::true"
30+
fi
31+
- name: Run chart-testing (lint)
32+
run: ct lint
33+
34+
- name: Create kind cluster
35+
uses: helm/[email protected]
36+
if: steps.list-changed.outputs.changed == 'true'
37+
38+
- name: Run chart-testing (install)
39+
run: ct install

.github/workflows/release.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release Charts
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Configure Git
18+
run: |
19+
git config user.name "$GITHUB_ACTOR"
20+
git config user.email "[email protected]"
21+
- name: Install Helm
22+
uses: azure/setup-helm@v1
23+
24+
- name: Run chart-releaser
25+
uses: helm/[email protected]
26+
env:
27+
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)