Closed KrustyHack closed 1 year ago
Ay,
I found the problem. My chart is on a folder named XXX but the chart name is YYY :
+ helm package .
Successfully packaged chart and saved it to: /github/workspace/apps/myapp/infra/helm/myapp-0.1.0.tgz
+ helm cm-push 'apps/myapp/infra/helm-*' *** -u *** -p '***' -f
well, it's not typo, ideally it should:
chart-0.1.1.tgz
(where 0.1.1 is version)you can check test pipeline logs maybe to see how it works
https://github.com/Goodsmileduck/helm-push-action/actions/runs/3126127522/jobs/5071266648
step: Test helm v3 push
and example usages for action https://github.com/Goodsmileduck/helm-push-action/blob/master/.github/workflows/helm3.yml#L37-L45
Ay @Goodsmileduck ,
Yes but my problem is that the folder where my Helm chart is has not the same name as my chart !
@KrustyHack , I have a similar problem. Did you do something to fix your problem?
@gasparpn hi, renaming folder is not an option?
@Goodsmileduck , Thanks for replying.
So, that could be an option. The name
value in Chart.yaml
has to be the same as my chart folder name?
@Goodsmileduck , Thanks for replying. So, that could be an option. The
name
value inChart.yaml
has to be the same as my chart folder name?
Yes. Ideally
I changed the SOURCE_DIR
to the directory that the chart directory is under.
@KrustyHack , in your case it would be
SOURCE_DIR: "myapp/infra"
CHART_FOLDER: "helm"
@Goodsmileduck , also using FORCE=False
adds a -f parameter that makes the push command to fail.
Ay,
Thanks for this Ghitub Action, but I have a question about the last line : https://github.com/Goodsmileduck/helm-push-action/blob/39d65bb6f8cdc3b7b4655a5598ec38da767e788a/entrypoint.sh#L52
Is
${CHART_FOLDER}-*
a typo ?I got this error on my workflow :