Skip to content

Commit f1e1398

Browse files
helm chart CI update -> replace GHCR with orphan "charts" branch
- GHCR had no issue storing, but issues pulling (requires PAT - terrible for public images)
1 parent cef42f5 commit f1e1398

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

.github/workflows/helm-verne-chart-release.yaml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Helm Chart release for Verne to GHCR OCI registry
1+
name: Helm Chart release for Verne to charts branch
22

33
on:
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

0 commit comments

Comments
 (0)