pipeline: tryfix helm chart versionning
This commit is contained in:
@@ -46,8 +46,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
# Get base chart version from Chart.yaml
|
# Get base chart version from Chart.yaml
|
||||||
BASE_VERSION=$(grep '^version:' chart/Chart.yaml | awk '{print $2}')
|
BASE_VERSION=$(grep '^version:' chart/Chart.yaml | awk '{print $2}')
|
||||||
# Use timestamp for ordered versions (e.g., 0.1.0-20240511.130400)
|
# Use timestamp for ordered versions (e.g., 0.1.0-20240511-130400)
|
||||||
TIMESTAMP=$(date -u +"%Y%m%d.%H%M%S")
|
# Note: SemVer pre-release cannot contain dots, only hyphens and alphanumerics
|
||||||
|
TIMESTAMP=$(date -u +"%Y%m%d-%H%M%S")
|
||||||
CHART_VERSION="${BASE_VERSION}-${TIMESTAMP}"
|
CHART_VERSION="${BASE_VERSION}-${TIMESTAMP}"
|
||||||
|
|
||||||
# Update both version and appVersion
|
# Update both version and appVersion
|
||||||
|
|||||||
Reference in New Issue
Block a user