fix: fix build pipeline for helm charts
This commit is contained in:
+4
-4
@@ -14,8 +14,8 @@ release:
|
|||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
cd $CI_PROJECT_DIR
|
cd $CI_PROJECT_DIR
|
||||||
for i in $(git show --pretty="" --name-only | grep '^[^/]*/chart/Chart.yaml' | cut -d/ -f1); do
|
for i in $(git show --pretty="" --name-only | grep '^charts/.*/Chart.yaml' | cut -d/ -f2); do
|
||||||
pack=$(helm package $i/chart | sed 's/Success.*: \(.*\)/\1/')
|
pack=$(helm package ./charts/$i | sed 's/Success.*: \(.*\)/\1/')
|
||||||
if [ ! -z $pack ]; then
|
if [ ! -z $pack ]; then
|
||||||
chart=$(basename $pack)
|
chart=$(basename $pack)
|
||||||
curl --request POST \
|
curl --request POST \
|
||||||
@@ -33,8 +33,8 @@ rebuild:
|
|||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
cd $CI_PROJECT_DIR
|
cd $CI_PROJECT_DIR
|
||||||
for i in $(find -maxdepth 3 -name Chart.yaml | cut -d/ -f2); do
|
for i in $(find ./charts -maxdepth 2 -name Chart.yaml | cut -d/ -f3); do
|
||||||
pack=$(helm package $i/chart | sed 's/Success.*: \(.*\)/\1/')
|
pack=$(helm package ./charts/$i | sed 's/Success.*: \(.*\)/\1/')
|
||||||
if [ ! -z $pack ]; then
|
if [ ! -z $pack ]; then
|
||||||
chart=$(basename $pack)
|
chart=$(basename $pack)
|
||||||
curl --request POST \
|
curl --request POST \
|
||||||
|
|||||||
Reference in New Issue
Block a user