Skip to content

Commit

Permalink
build-recipe-helm: Tighten default helmignore
Browse files Browse the repository at this point in the history
We only want to exclude *.changes and _* in the root directory.
  • Loading branch information
dirkmueller committed Oct 8, 2020
1 parent df9637e commit 0457a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-recipe-helm
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ recipe_build_helm() {
local version=$(perl -I$BUILD_DIR -MBuild::Helm -e 'Build::Helm::show' -- "${args[@]}" "$BUILD_ROOT/$TOPDIR/SOURCES/$RECIPEFILE" version)
local nameversion="$name-$version"
# avoid packaging sources services and changes files (also include content from _helmignore)
chroot $BUILD_ROOT su -c "(cd $TOPDIR/BUILD; [ -f _helmignore ] && mv -f _helmignore .helmignore; echo -e '*.changes\n_*\n' >> .helmignore; )" - $BUILD_USER || cleanup_and_exit 1
chroot $BUILD_ROOT su -c "(cd $TOPDIR/BUILD; [ -f _helmignore ] && mv -f _helmignore .helmignore; echo -e '/*.changes\n/_*\n' >> .helmignore; )" - $BUILD_USER || cleanup_and_exit 1
# create chart
chroot $BUILD_ROOT su -c "cd $TOPDIR/BUILD && helm package -d $TOPDIR/HELM ." - $BUILD_USER || cleanup_and_exit 1
test -f "$BUILD_ROOT$TOPDIR/HELM/$nameversion.tgz" || cleanup_and_exit 1 "helm package command did not create $nameversion.tgz"
Expand Down

0 comments on commit 0457a3d

Please sign in to comment.