Skip to content

Instantly share code, notes, and snippets.

@mhrivnak
Created March 5, 2018 14:04
Show Gist options
  • Save mhrivnak/4665e6e46c45d8dbd6c12fb87715fa55 to your computer and use it in GitHub Desktop.
Save mhrivnak/4665e6e46c45d8dbd6c12fb87715fa55 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# This is just where I keep my apb tool installed in a virtualenv
PYTHON=~/pythons/apb/bin/python
PATH=$PATH:~/pythons/apb/bin/
for chart in $(helm search stable | grep -v NAME | awk '{ print $1 }' | sed -e 's/stable\///'); do
echo $chart
mkdir -p $chart
pushd $chart
helm fetch "stable/$chart"
helm2bundle *.tgz
image="docker.io/helmbundle/$chart-apb"
apb build --tag $image
docker push $image
popd
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment