This repository has been archived by the owner on May 6, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
72 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/bin/charts | ||
/minibroker | ||
/minibroker-linux | ||
/image/minibroker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
name: minibroker | ||
description: a chart for the service-broker-skeleton | ||
version: 0.0.1 | ||
description: A minibroker for your minikube | ||
version: 0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -xeuo pipefail | ||
|
||
helm init --client-only | ||
|
||
##### | ||
# set up the repo dir, and package up all charts | ||
##### | ||
REPO_ROOT=https://minibroker.blob.core.windows.net | ||
AZURE_STORAGE_CONTAINER=charts | ||
REPO_DIR=bin/charts | ||
mkdir -p $REPO_DIR | ||
echo "entering $REPO_DIR" | ||
cd $REPO_DIR | ||
# download the existing repo's index.yaml so that we can merge it later | ||
echo "downloading existing index.yaml" | ||
curl -sLO ${REPO_ROOT}/${AZURE_STORAGE_CONTAINER}/index.yaml | ||
for dir in `ls ../../charts`;do | ||
if [ ! -f ../../charts/$dir/Chart.yaml ];then | ||
echo "skipping $dir because it lacks a Chart.yaml file" | ||
else | ||
echo "packaging $dir" | ||
helm dep build ../../charts/$dir | ||
helm package ../../charts/$dir | ||
fi | ||
done | ||
|
||
##### | ||
# index the charts, merging with the old index.yaml so charts are versioned | ||
##### | ||
helm repo index --url "$REPO_ROOT/$AZURE_STORAGE_CONTAINER" --merge index.yaml . | ||
|
||
##### | ||
# upload to Azure blob storage | ||
##### | ||
|
||
if [ -z "$AZURE_STORAGE_CONNECTION_STRING" ]; then | ||
echo "AZURE_STORAGE_CONNECTION_STRING env var required to publish" | ||
exit 1 | ||
fi | ||
|
||
echo "uploading from $PWD" | ||
az storage blob upload-batch --destination $AZURE_STORAGE_CONTAINER --source . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.