Skip to content

Commit 9793d5c

Browse files
aa-replicatedclaude
andcommitted
fix(ci): stamp helmchart.yaml chartVersion at release time
The HelmChart manifest must have a chartVersion matching the packaged archive. Replicated cannot match them when the field is empty, causing helm-archive-missing and helm-chart-missing errors. After copying helmchart.yaml to release/, use sed to replace the empty chartVersion with the build version before the release is created. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 590494b commit 9793d5c

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
cp .replicated release/
5959
cp embedded-cluster-config.yaml release/
6060
cp helmchart.yaml release/
61+
sed -i "s/chartVersion: \"\"/chartVersion: \"${{ env.CHART_VERSION }}\"/" release/helmchart.yaml
6162
6263
- name: Create Replicated release
6364
id: create-release

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
cp .replicated release/
5656
cp embedded-cluster-config.yaml release/
5757
cp helmchart.yaml release/
58+
sed -i "s/chartVersion: \"\"/chartVersion: \"${{ env.VERSION }}\"/" release/helmchart.yaml
5859
5960
- name: Create Replicated release
6061
id: create-release

0 commit comments

Comments
 (0)