File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,22 +52,25 @@ jobs:
5252
5353 # Set chart version - use tag name if available, otherwise use semver format
5454 if [[ "${{ github.ref_type }}" == "tag" ]]; then
55- CHART_VERSION="${{ github.ref_name }}"
56- # Remove 'v' prefix if present
57- CHART_VERSION="${CHART_VERSION#v}"
55+ TAG_NAME="${{ github.ref_name }}"
56+ # Chart version must not have 'v' prefix (OCI/semver convention)
57+ CHART_VERSION="${TAG_NAME#v}"
58+ # App version keeps 'v' prefix to match container image tags
59+ APP_VERSION="${TAG_NAME}"
5860 else
5961 CHART_VERSION="0.0.0-${{ github.sha }}"
62+ APP_VERSION="${CHART_VERSION}"
6063 fi
61-
64+
6265 # Package and push each chart in deploy/charts/
6366 for chart_dir in deploy/charts/*/; do
6467 if [ -f "${chart_dir}Chart.yaml" ]; then
6568 chart_name=$(basename "$chart_dir")
6669 echo "Processing chart: $chart_name"
67-
70+
6871 # Update chart version and appVersion in Chart.yaml
6972 sed -i "s/^version:.*/version: ${CHART_VERSION}/" "${chart_dir}Chart.yaml"
70- sed -i "s/^appVersion:.*/appVersion: ${CHART_VERSION} /" "${chart_dir}Chart.yaml"
73+ sed -i "s/^appVersion:.*/appVersion: \"${APP_VERSION}\" /" "${chart_dir}Chart.yaml"
7174
7275 # Package the chart
7376 helm package "$chart_dir" --version "${CHART_VERSION}"
Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ The hub needs to be reachable by agents from anywhere — it's the only componen
45454 . ** Install the hub via Helm:**
4646
4747``` bash
48- helm install kedge-hub oci://ghcr.io/faroshq/charts/kedge-hub \
49- --namespace kedge --create-namespace \
48+ helm install kedge oci://ghcr.io/faroshq/charts/kedge-hub \
49+ --namespace kedge-system --create-namespace \
5050 --set hub.hubExternalURL=https://kedge.example.com
5151```
5252
You can’t perform that action at this time.
0 commit comments