Skip to content

Commit

Permalink
github: enable unstable Helm charts for release branches
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Lehtonen <[email protected]>
  • Loading branch information
marquiz committed Mar 28, 2024
1 parent 07d6d46 commit 3691621
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/package-helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- "v*.*.*"
branches:
- main
- release-*

env:
CHARTS_DIR: deployment/helm/
Expand Down Expand Up @@ -71,7 +72,11 @@ jobs:
# - image version: 'unstable'.
majmin="$(git describe | sed -E 's/(v[0-9]*\.[0-9]*).*$/\1/')"
CHART_VERSION="${majmin}-unstable"
APP_VERSION=unstable
if [ $GITHUB_REF_NAME = "main" ]; then
APP_VERSION=unstable
else
APP_VERSION="${majmin}-unstable"
fi
# Package charts
find "$CHARTS_DIR" -name values.yaml | xargs -I '{}' \
sed -e s"/pullPolicy:.*/pullPolicy: Always/" -i '{}'
Expand Down

0 comments on commit 3691621

Please sign in to comment.