Skip to content

Commit 3fa07c2

Browse files
committed
fix: chart image
Signed-off-by: Douglas Gadêlha <dgadelha@live.com>
1 parent 63e74f5 commit 3fa07c2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/helm.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@ jobs:
4343
- name: Build chart 🚚
4444
run: |
4545
if [[ "${{ github.ref_type }}" == "tag" ]]; then
46-
sed -i "s/0.0.0/${{ github.ref }}/g" helm/Chart.yaml
46+
VERSION="${{ github.ref }}"
4747
else
48-
sed -i "s/0.0.0/0.0.0-${GITHUB_SHA::7}/g" helm/Chart.yaml
48+
VERSION="0.0.0-${GITHUB_SHA::7}"
4949
fi
5050
51-
npm run build:chart
51+
sed -i "s/0.0.0/$VERSION/g" helm/Chart.yaml
52+
npm run build:chart -- --image cubos/disk-resizer-controller:$VERSION
5253
5354
- name: Publish chart 🚀
5455
run: |

0 commit comments

Comments
 (0)