Commit afcfbb82 authored by Frederic Lavigne's avatar Frederic Lavigne
Browse files

consumer publish to solution

parent 334aaad2
......@@ -9,4 +9,4 @@ app.get('/', function (req, res) {
console.log(' Application Running on port' + PORT);
console.log('Server is running on port ' + PORT);
......@@ -8,4 +8,4 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
threadCount: {{ .Values.configuration.threadCount | quote }}
threadCount: {{ required "Threadcount required!" .Values.configuration.threadCount | quote }}
# inject variables into chart values.yaml
# repository: $IMAGE_NAME
sed -i 's/repository: '$IMAGE_NAME'/repository: '$ESCAPED_IMAGE_REPOSITORY'/g' chart/*/values.yaml
# tag: 1
sed -i 's/tag: 1/tag: '$BUILD_NUMBER'/g' chart/*/values.yaml
echo "Chart values after substitutions:"
cat chart/*/values.yaml
# helm package
helm init --client-only
helm package chart/*
# git clone solution
git config --global "[email protected]"
git config --global "Automatic Build"
git config --global push.default simple
git clone "https://oauth2:$"
# copy to charts
mkdir -p solution/charts
cp -f *.tgz solution/charts
# commit the new chart
cd solution
git add .
git status
git commit -m 'new module build'
git push
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment