1919 - uses : actions/checkout@v4
2020 - uses : actions/setup-go@v5
2121 with :
22- go-version : v1.25.4
22+ go-version : v1.26.1
2323 check-latest : true
2424
2525 # We need this to remove local tags that are not semver so goreleaser doesn't get confused.
3333 # If you notice signing errors, you may need to update the cosign version.
3434 - uses : sigstore/cosign-installer@v3.7.0
3535
36-
36+
3737 - name : Install Helm
3838 uses : azure/setup-helm@v3
3939 with :
4343 run : echo LDFLAGS="$(make ldflags)" | tee -a >> $GITHUB_ENV
4444
4545 # Login to GitHub Container Registry (used by both ko and Docker)
46- - name : Login to GitHub Container Registry
46+ - name : Login to GitHub Container Registry
4747 uses : docker/login-action@v3
4848 with :
4949 registry : ghcr.io
@@ -134,7 +134,7 @@ jobs:
134134 run : |
135135 # Login to GitHub Container Registry for Helm
136136 echo "${{ github.token }}" | helm registry login ghcr.io --username ${{ github.actor }} --password-stdin
137-
137+
138138 # Set chart version - use tag name if available, otherwise use semver format
139139 if [[ "${{ github.ref_type }}" == "tag" ]]; then
140140 CHART_VERSION="${{ github.ref_name }}"
@@ -143,23 +143,23 @@ jobs:
143143 else
144144 CHART_VERSION="0.0.0-${{ github.sha }}"
145145 fi
146-
146+
147147 # Package and push each chart in deploy/charts/
148148 for chart_dir in deploy/charts/*/; do
149149 if [ -f "${chart_dir}Chart.yaml" ]; then
150150 chart_name=$(basename "$chart_dir")
151151 echo "Processing chart: $chart_name"
152-
152+
153153 # Update chart version and appVersion in Chart.yaml
154154 sed -i "s/^version:.*/version: ${CHART_VERSION}/" "${chart_dir}Chart.yaml"
155155 sed -i "s/^appVersion:.*/appVersion: ${CHART_VERSION}/" "${chart_dir}Chart.yaml"
156-
156+
157157 # Package the chart
158158 helm package "$chart_dir" --version "${CHART_VERSION}"
159-
159+
160160 # Push to GitHub Container Registry
161161 helm push "${chart_name}-${CHART_VERSION}.tgz" "oci://ghcr.io/${{ github.repository_owner }}/charts"
162-
162+
163163 echo "Helm chart pushed to oci://ghcr.io/${{ github.repository_owner }}/charts/${chart_name}:${CHART_VERSION}"
164164 fi
165165 done
0 commit comments