Skip to content

Commit

Permalink
fix: helm chart image version
Browse files Browse the repository at this point in the history
Signed-off-by: Douglas Gadêlha <[email protected]>
  • Loading branch information
dgadelha committed Nov 29, 2023
1 parent d07b596 commit 6006bed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@ jobs:
- name: Build chart 🚚
run: |
if [[ "${{ github.ref_type }}" == "tag" ]]; then
sed -i "s/0.0.0/${GITHUB_REF_NAME}/g" helm/Chart.yaml
VERSION="${GITHUB_REF_NAME}"
else
sed -i "s/0.0.0/0.0.0-${GITHUB_SHA::7}/g" helm/Chart.yaml
VERSION="0.0.0-${GITHUB_SHA::7}"
fi
sed -i "s/0.0.0/$VERSION/g" helm/Chart.yaml
npm run build:chart -- --image cubos/disk-resizer-controller:$VERSION
- name: Publish chart 🚀
Expand Down

0 comments on commit 6006bed

Please sign in to comment.