Skip to content
Permalink
Browse files

Add indexing portion of helm repository publish workflow.

  • Loading branch information
Brett Morien
Brett Morien committed Jan 13, 2020
1 parent 70de1af commit b6b0a590028b69d2952db1a49ad49516bd23e9f1
Showing with 20 additions and 7 deletions.
  1. +19 −6 .github/scripts/helm_publish.sh
  2. +1 −1 charts/orbit/Chart.yaml
@@ -8,6 +8,10 @@ token=$GITHUB_TOKEN
platform="linux"
version=$TAG_VERSION

curl -sSLo helm.tar.gz https://get.helm.sh/helm-v$helmVersion-$platform-amd64.tar.gz
tar -xzf helm.tar.gz
rm -f helm.tar.gz

cat >| charts/orbit/Chart.yaml << EOF
apiVersion: v1
appVersion: "$version"
@@ -16,14 +20,23 @@ name: orbit
version: $version
EOF

curl -sSLo helm.tar.gz https://get.helm.sh/helm-v$helmVersion-$platform-amd64.tar.gz
tar -xzf helm.tar.gz
rm -f helm.tar.gz

mkdir .helm-release-packages
./$platform-amd64/helm version
./$platform-amd64/helm package "$chartDir" --destination .helm-release-packages --dependency-update

. ./.github/scripts/upload_chart.sh owner=$owner repo=$repo tag=v$version filename=./.helm-release-packages/orbit-$version.tgz github_api_token=$token

rm -rf ./$platform-amd64
git add ./charts/orbit/Chart.yaml
git commit -m "Bump Helm chart version to $version"

git checkout gh-pages --merge
helm repo index . --merge index.yaml

git add ./index.yaml
git commit -m "Release $version"

rm -rf ./$platform-amd64
rm -rf .helm-release-packages

git reset --hard
git push origin gh-pages
git checkout master
@@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "1.0"
description: An Orbit Mesh Helm chart for Kubernetes
name: orbit
version: 2.0.0a19.7
version: 0.1.0

0 comments on commit b6b0a59

Please sign in to comment.
You can’t perform that action at this time.