@@ -243,31 +243,6 @@ jobs:
243243 echo ""
244244 echo "✓ Provenance attestation completed for all images"
245245
246- - name : Upload charts to release
247- if : ${{ env.IS_HOTFIX == 'false' }}
248- env :
249- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
250- repo : " rancher"
251- run : |
252- version=$(jq -r '.version' <<< '${{ steps.goreleaser.outputs.metadata }}')
253- tag=$(jq -r '.tag' <<< '${{ steps.goreleaser.outputs.metadata }}')
254- echo "publishing helm chart for (repo: $repo, tag: $tag, version: $version)"
255-
256- # Replace rancher/fleet and rancher/fleet-agent and rancher/gitjob image names
257- sed -i \
258- -e "s@repository: rancher/\(fleet.*\|gitjob\).*@repository: $repo/\\1@" \
259- -e "s/tag:.*/tag: $tag/" \
260- charts/fleet/values.yaml
261-
262- sed -i \
263- -e "s@repository: rancher/\(fleet.*\|gitjob\).*@repository: $repo/\\1@" \
264- -e "s/tag: dev/tag: $tag/" \
265- charts/fleet-agent/values.yaml
266-
267- find charts/ -maxdepth 1 -mindepth 1 -type d -exec helm package --version="$version" --app-version="$version" -d ./dist {} \;
268-
269- find dist/ -name '*.tgz' -exec gh release upload "$tag" {} +
270-
271246 - name : Add charts to branch
272247 if : ${{ env.IS_HOTFIX == 'false' }}
273248 env :
@@ -300,7 +275,7 @@ jobs:
300275 fi
301276
302277 mkdir -p charts
303- find dist / -name '*.tgz' -exec tar -xf {} -C charts/ \;
278+ find .charts / -name '*.tgz' -exec tar -xf {} -C charts/ \;
304279
305280 git add charts/**/*
306281 git commit -m "Update charts to version $version"
0 commit comments