Skip to content

Commit 8539b24

Browse files
committed
added gh-pages branch to fix oci push
Signed-off-by: itsfarhan <[email protected]>
1 parent 2f7d3d0 commit 8539b24

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/helm_publish.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ permissions:
1616
jobs:
1717
publish:
1818
runs-on: ubuntu-24.04
19+
env:
20+
OCI_REPO: oci://ghcr.io/itsfarhan/charts
21+
1922
steps:
2023
- name: Harden Runner
2124
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
@@ -39,9 +42,10 @@ jobs:
3942
git fetch origin gh-pages
4043
git checkout origin/gh-pages -- charts/
4144
ls -la charts/
45+
OCI_REPO="${OCI_REPO:-oci://ghcr.io/itsfarhan/charts}"
4246
for chart in charts/k8gb-*.tgz; do
4347
if [ -f "$chart" ]; then
44-
helm push "$chart" "oci://ghcr.io/k8gb-io/charts"
48+
helm push "$chart" "$OCI_REPO"
4549
fi
4650
done
4751

0 commit comments

Comments
 (0)