Skip to content

Commit ce995b5

Browse files
committed
add bin/package for publishing
1 parent 6a103ae commit ce995b5

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
General files for the project
22
pkg/*
33
*.pyc
4-
bin/*
54
.project
65
/.bin
76
/_test/secrets/*.json

bin/package

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
chart=$1
6+
version=$(grep version "$chart/Chart.yaml" | awk '{ print $2 }')
7+
8+
echo "packaging $chart:$version"
9+
10+
helm package -d docs/ $chart
11+
12+
helm repo index docs
13+
14+
git add "docs/$chart-$version.tgz"
15+
git add docs/index.yaml
16+
17+
git tag "$chart-v$version"
18+

0 commit comments

Comments
 (0)