Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
Fix my own issues. (#3)
Browse files Browse the repository at this point in the history
Fix my own issues.
  • Loading branch information
J12934 authored Nov 16, 2019
2 parents 108d735 + aadd09d commit abbc4c1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const getDirectories = fileName =>
withFileTypes: true,
})
.filter(dirent => dirent.isDirectory())
.filter(dirent => !(/(^|\/)\.[^\/\.]/g).test(dirent))
.map(dirent => dirent.name);

async function run() {
Expand Down Expand Up @@ -60,8 +61,15 @@ async function run() {
const chartDirectories = getDirectories(path.resolve(`./${chartsDir}`));

console.log('Charts dir content');
await exec.exec(`ls`, [], { cwd: `./${chartsDir}` });
await exec.exec(`ls`, ['-I ".*"'], { cwd: `./${chartsDir}` });
for (const chartDirname of chartDirectories) {
console.log(`Resolving helm chart dependency in directory ${chartDirname}`);
await exec.exec(
`helm dependency update`,
[],
{ cwd: `./${chartsDir}/${chartDirname}` }
);

console.log(`Packaging helm chart in directory ${chartDirname}`);
await exec.exec(
`helm package`,
Expand Down

0 comments on commit abbc4c1

Please sign in to comment.