Skip to content

Commit 8281570

Browse files
committed
fix: revert to single version
Signed-off-by: Douglas Gadêlha <[email protected]>
1 parent 85b9c4c commit 8281570

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

.github/workflows/helm.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)