File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -43,24 +43,13 @@ jobs:
4343 - name : Build chart 🚚
4444 run : |
4545 if [[ "${{ github.ref_type }}" == "tag" ]]; then
46- VERSION=" ${{ github.ref }}"
46+ sed -i "s/0.0.0/ ${{ github.ref }}/g" helm/Chart.yaml
4747 else
48- VERSION=" 0.0.0-${GITHUB_SHA::7}"
48+ sed -i "s/ 0.0.0/0.0.0 -${GITHUB_SHA::7}/g" helm/Chart.yaml
4949 fi
5050
51- sed -i "s/0.0.0/$VERSION/g" helm/Chart.yaml
5251 npm run build:chart -- --image cubos/disk-resizer-controller:$VERSION
5352
54- if [[ "${{ github.ref_type }}" == "tag" ]]; then
55- sed -i "s/$VERSION/latest/g" helm/Chart.yaml
56- npm run build:chart -- --image cubos/disk-resizer-controller:$VERSION
57- else
58- sed -i "s/$VERSION/edge/g" helm/Chart.yaml
59- npm run build:chart -- --image cubos/disk-resizer-controller:$VERSION
60- fi
61-
6253 - name : Publish chart 🚀
6354 run : |
64- for f in *.tgz; do
65- helm push $f oci://ghcr.io/cubos/charts
66- done
55+ helm push *.tgz oci://ghcr.io/cubos/charts
You can’t perform that action at this time.
0 commit comments