File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
deployments/kubernetes/chart/reloader Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ concurrency:
1717 cancel-in-progress : false
1818
1919env :
20- OCI_REPO : ghcr.io/${{ github.repository_owner }}/charts
20+ # OCI repo will be computed and exported later to ensure lowercase
21+ OCI_REPO : " "
2122
2223jobs :
2324 release :
@@ -78,12 +79,20 @@ jobs:
7879 helm package deployments/kubernetes/chart/reloader --destination dist
7980 ls -l dist
8081
82+ - name : Compute OCI repo (lowercase owner)
83+ run : |
84+ OWNER_LOWER=$(echo "${{ github.repository_owner }}" | tr 'A-Z' 'a-z')
85+ echo "OCI_REPO=ghcr.io/${OWNER_LOWER}/reloader" >> $GITHUB_ENV
86+ echo "Computed OCI repo: ghcr.io/${OWNER_LOWER}/reloader"
87+
8188 - name : Push OCI package (optional, ignore failure)
8289 run : |
8390 set -e
8491 echo "Logging into GHCR for OCI push"
8592 echo ${{ github.token }} | helm registry login ghcr.io --username ${{ github.actor }} --password-stdin || true
86- helm push dist/*.tgz oci://$OCI_REPO || echo "OCI push skipped"
93+ if [ -z "$OCI_REPO" ]; then echo "OCI_REPO empty, skipping push"; exit 0; fi
94+ echo "Attempting helm push to oci://$OCI_REPO"
95+ helm push dist/*.tgz oci://$OCI_REPO || echo "OCI push failed or skipped"
8796
8897 - name : Update gh-pages branch (branch-scoped index)
8998 run : |
Original file line number Diff line number Diff line change 11apiVersion : v1
22name : reloader
33description : Reloader chart that runs on kubernetes
4- version : 0.1.7
4+ version : 0.1.8
55appVersion : v1.4.10
66keywords :
77 - Reloader
You can’t perform that action at this time.
0 commit comments