Skip to content

Commit f0b1a05

Browse files
chore(chart): fixing gh action issues reloader chart to 0.1.8
1 parent b781c35 commit f0b1a05

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/release-helm-chart-by-branch.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ concurrency:
1717
cancel-in-progress: false
1818

1919
env:
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

2223
jobs:
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: |

deployments/kubernetes/chart/reloader/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
name: reloader
33
description: Reloader chart that runs on kubernetes
4-
version: 0.1.7
4+
version: 0.1.8
55
appVersion: v1.4.10
66
keywords:
77
- Reloader

0 commit comments

Comments
 (0)