File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change 1- name : Helm Chart release for Verne to GHCR OCI registry
1+ name : Helm Chart release for Verne to charts branch
22
33on :
44 push :
@@ -21,19 +21,17 @@ jobs:
2121 with :
2222 version : ' latest'
2323
24- - name : Authenticate GitHub Container Registry
25- env :
26- GITHUB_TOKEN : ${{ secrets.GHCR_ACCESS_TOKEN }}
27- run : echo $GITHUB_TOKEN | helm registry login ghcr.io -u ShubhamTiwary914 --password-stdin
28-
29- - name : Package Helm chart
24+ - name : Package Helm chart to tempdir
3025 run : helm package helm/verne --destination $RUNNER_TEMP
3126
32- - name : Push Helm chart to GHCR
33- run : helm push $RUNNER_TEMP/verne-*.tgz oci://ghcr.io/shubhamtiwary914/logcore/helm-charts
27+ - name : Switch & Push to charts branch
28+ run : |
29+ git fetch origin charts || true
30+ git checkout charts || git checkout --orphan charts
31+ cp -r $RUNNER_TEMP/* .
32+ git add .
33+ git config user.name "github-actions[bot]"
34+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
35+ git commit -m "update charts from $GITHUB_SHA" || echo "No changes"
36+ git push origin charts
3437
35- - name : Upload chart artifact (optional)
36- uses : actions/upload-artifact@v4
37- with :
38- name : verne-chart
39- path : ./helm/release/verne-*.tgz
You can’t perform that action at this time.
0 commit comments