Skip to content

Commit 6006bed

Browse files
committed
fix: helm chart image version
Signed-off-by: Douglas Gadêlha <[email protected]>
1 parent d07b596 commit 6006bed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/helm.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,12 @@ jobs:
4343
- name: Build chart 🚚
4444
run: |
4545
if [[ "${{ github.ref_type }}" == "tag" ]]; then
46-
sed -i "s/0.0.0/${GITHUB_REF_NAME}/g" helm/Chart.yaml
46+
VERSION="${GITHUB_REF_NAME}"
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+
sed -i "s/0.0.0/$VERSION/g" helm/Chart.yaml
5152
npm run build:chart -- --image cubos/disk-resizer-controller:$VERSION
5253
5354
- name: Publish chart 🚀

0 commit comments

Comments
 (0)