Skip to content

Commit 2492199

Browse files
committed
Add GH actions for publishing chart
Signed-off-by: David Young <davidy@funkypenguin.co.nz>
1 parent 943618e commit 2492199

File tree

71 files changed

+100
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+100
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Lint and Test Charts
2+
3+
on:
4+
push:
5+
paths:
6+
- 'charts/**'
7+
- '.github/**'
8+
9+
jobs:
10+
lint-test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v1
15+
16+
- name: Run chart-testing (lint)
17+
id: lint
18+
uses: helm/chart-testing-action@v1.0.0-rc.1
19+
with:
20+
config: .ci/ct-config.yaml
21+
command: lint
22+
23+
- name: Create kind cluster
24+
uses: helm/kind-action@v1.0.0-alpha.3
25+
with:
26+
install_local_path_provisioner: true
27+
# Only build a kind cluster if there are chart changes to test.
28+
if: steps.lint.outputs.changed == 'true'
29+
30+
- name: Run chart-testing (install)
31+
uses: helm/chart-testing-action@v1.0.0-rc.1
32+
with:
33+
command: install
34+
config: .ci/ct-config.yaml
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Publish helm chart
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- 'charts/**'
9+
- '.github/**'
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
# - uses: azure/setup-helm@v1
19+
# id: installhelm3
20+
# with:
21+
# version: 'v3.0.3'
22+
# - name: Publish helm charts
23+
# uses: funkypenguin/helm-gh-pages-action@v1.1.1
24+
# with:
25+
# # A personal access token needed to push your site after it has been built.
26+
# access-token: ${{ secrets.CR_TOKEN }}
27+
# # The branch expected by GitHub to have the static files needed for your site.
28+
# deploy-branch: chart
29+
# # The folder in which the helm charts are located
30+
# charts-folder: charts
31+
32+
- name: Fetch history
33+
run: git fetch --prune --unshallow
34+
35+
- name: Configure Git
36+
run: |
37+
git config user.name "$GITHUB_ACTOR"
38+
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
39+
40+
# See https://github.com/helm/chart-releaser-action/issues/6
41+
- name: Install Helm
42+
run: |
43+
curl -fsSLo get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
44+
chmod 700 get_helm.sh
45+
./get_helm.sh
46+
47+
- name: Run chart-releaser
48+
uses: helm/chart-releaser-action@v1.0.0-rc.2
49+
env:
50+
CR_TOKEN: "${{ secrets.CR_TOKEN }}"
51+
52+
# - name: Discord notification
53+
# env:
54+
# DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
55+
# uses: Ilshidur/action-discord@master
56+
# with:
57+
# args: |
58+
# Greetings, geeks! 🤓
59+
60+
# A new/updated helm ⎈ chart is fresh out of the oven!
61+
62+
# Here's what's changed:
63+
# > ${{github.event.commits[0].message}}
64+
65+
# Get more details at:
66+
# {{ EVENT_PAYLOAD.compare }}

helm-chart/docker-mailserver/charts/kubernetes-ingress-0.7.0.tgz renamed to charts/docker-mailserver/charts/kubernetes-ingress-0.7.0.tgz

File renamed without changes.

0 commit comments

Comments
 (0)