Skip to content

Commit 857ee30

Browse files
authored
Merge pull request #1854 from joshleecreates/fix/ghcr-helm-charts
Restores GHCR release steps from #1779
2 parents 055a6d6 + 28a6d8a commit 857ee30

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/release_chart.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ jobs:
2525
sudo install cr /usr/local/bin/
2626
rm -f cr chart-releaser_1.4.1_linux_amd64.tar.gz
2727
28+
- name: Install Helm
29+
run: |
30+
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
31+
32+
- name: Login to GitHub Container Registry
33+
run: echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ghcr.io -u ${{ github.actor }} --password-stdin
34+
2835
- name: Package Chart
2936
run: cr package deploy/helm/clickhouse-operator
3037

@@ -73,6 +80,11 @@ jobs:
7380
echo " HELM_GITHUB_REPOSITORY: ${{ vars.HELM_GITHUB_REPOSITORY }}"
7481
echo " HELM_GITHUB_TOKEN: [SET]"
7582
83+
- name: Push Helm Chart to OCI Registry
84+
run: |
85+
CHART_PATH=$(ls .cr-release-packages/altinity-clickhouse-operator-*.tgz)
86+
helm push "${CHART_PATH}" oci://ghcr.io/altinity/clickhouse-operator-helm-chart
87+
7688
- name: Upload Release Artifacts to Helm Repo
7789
run: |
7890
cr upload \

0 commit comments

Comments
 (0)