Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 5 additions & 25 deletions .github/workflows/helm_charts_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ jobs:
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"

- name: Install Helm
uses: azure/setup-helm@v3
with:
Expand All @@ -30,30 +25,15 @@ jobs:
with:
python-version: 3.9

- name: Extract chart version
run: echo "CHART_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install pyyaml

- name: Bump chart version
run: python ./.github/scripts/bump_chart_version.py $CHART_VERSION

- name: Commit & Push
- name: Extract chart version and remove v prefix
id: extract_version
run: |
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
git checkout -b main
git add .
git commit -m "Bump chart version to $CHART_VERSION"
git push origin main
CHART_VERSION=$(echo ${{ github.ref }} | cut -d'/' -f3)
echo "::set-output name=version::${CHART_VERSION#v}"

- name: Package whitebox chart
run: |
helm dependency build helm_charts/whitebox
helm package helm_charts/whitebox
helm package -u --version ${CHART_VERSION} helm_charts/whitebox

- name: Publish whitebox chart
run: |
Expand Down