Skip to content

Commit e31f601

Browse files
Merge pull request #16 from DataKitchen/github-workflow
ci(github): create workflow for publishing helm charts
2 parents f0959c5 + aac8fee commit e31f601

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish Charts
2+
description: Push charts to GitHub Pages
3+
inputs:
4+
github-token:
5+
description: 'GitHub token for pushing to gh-pages branch'
6+
required: true
7+
runs:
8+
using: 'composite'
9+
steps:
10+
- name: Configure Git
11+
shell: bash
12+
run: |
13+
git config user.name "$GITHUB_ACTOR"
14+
git config user.email "[email protected]"
15+
16+
- name: Run chart-releaser
17+
uses: helm/[email protected]
18+
with:
19+
charts_dir: '/deploy/charts'
20+
skip_existing: 'true'
21+
packages_with_index: 'true'
22+
env:
23+
CR_TOKEN: '${{ inputs.github-token }}'

.github/workflows/release.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release New Version
2+
on:
3+
push:
4+
branches:
5+
- master
6+
workflow_dispatch:
7+
branches:
8+
- master
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Latest Changes
14+
uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Package and Publish Charts
19+
uses: ./.github/actions/publish_charts
20+
with:
21+
github-token: '${{ secrets.GITHUB_TOKEN }}'

0 commit comments

Comments
 (0)