Skip to content

Release/0.0.52 (#51) #62

Release/0.0.52 (#51)

Release/0.0.52 (#51) #62

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
jobs:
deployment:
strategy:
fail-fast: true
matrix:
include:
- environment: "Dev"
helm-args: "-f nttchart/values-dev.yaml"
- environment: "Prod"
uses: ./.github/workflows/helm.yaml
secrets: inherit
with:
environment: ${{ matrix.environment }}
extra-helm-args: ${{ matrix.helm-args }}
version:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- run: |
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "[email protected]"
export OLD_VERSION=`yq .version nttchart/Chart.yaml`
export NEW_VERSION=`echo "import os;vbits=os.environ.get('OLD_VERSION').rsplit('.');print('.'.join([*vbits[0:-1], str(int(vbits[-1])+1)]))" | python3`
echo "Migrating chart from $OLD_VERSION to $NEW_VERSION"
yq -i '.version = strenv(NEW_VERSION)' nttchart/Chart.yaml
export BRANCH="release/$NEW_VERSION"
echo "Checking out $BRANCH"
git checkout -b "$BRANCH"
git commit -m "Create chart version $BRANCH" nttchart/Chart.yaml
git push --set-upstream origin "$BRANCH"