File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 7777 run : when_changed
7878 deps :
7979 - tools:helm
80- - tools:yaml2json
81- - tools:jq
8280 requires :
8381 vars :
8482 - COMPONENT
8886 status :
8987 - ' test ! -f "{{.ROOT_DIR2}}/charts/{{.COMPONENT}}/Chart.yaml"'
9088 vars :
91- CHART_NAME : # vars are evaluated before status, therefore the duplicated check
92- sh : ' if [[ -f "{{.ROOT_DIR2}}/charts/{{.COMPONENT}}/Chart.yaml" ]]; then cat "{{.ROOT_DIR2}}/charts/{{.COMPONENT}}/Chart.yaml" | {{.YAML2JSON}} | {{.JQ}} -r .name; else echo -n "{{.COMPONENT}}"; fi'
89+ CHART_NAME : ' {{.COMPONENT}}' # this requires the chart name to be the same as the component name
9390 cmds :
9491 - ' "{{.HELM}}" push "{{.LOCALTMP}}/{{.CHART_NAME}}-{{.VERSION}}.tgz" "oci://{{.HELM_REGISTRY}}"'
9592 - ' rm -f "{{.LOCALTMP}}/{{.CHART_NAME}}-{{.VERSION}}.tgz"'
You can’t perform that action at this time.
0 commit comments