Skip to content

Commit

Permalink
[CI] fix chart publish from overwriting teraslice registry (#3919)
Browse files Browse the repository at this point in the history
This PR makes the following changes:
  • Loading branch information
sotojn authored Jan 24, 2025
1 parent e15539e commit de6aac9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/publish-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ jobs:
helm repo index . --merge=index.yaml --url oci://ghcr.io/terascope/teraslice-chart:${{ env.CHART_VERSION }}
echo $(cat index.yaml)
echo $(ls)
sed -i 's|/teraslice-${{ env.CHART_VERSION }}.tgz||' index.yaml
sed -i 's|/teraslice-chart-${{ env.CHART_VERSION }}.tgz||' index.yaml
echo $(cat index.yaml)
- name: Commit Updated index.yaml
Expand All @@ -191,8 +191,6 @@ jobs:
run: |
cd ./helm/helm-repo-site
echo $(ls)
mv ./teraslice-${{ env.CHART_VERSION }}.tgz teraslice-chart-${{ env.CHART_VERSION }}.tgz
echo $(ls)
CHART_FILE=$(ls teraslice-chart-${{ env.CHART_VERSION }}.tgz)
echo "Publishing $CHART_FILE to GHCR..."
helm push $CHART_FILE oci://ghcr.io/terascope --debug
Expand Down
2 changes: 1 addition & 1 deletion helm/helm-repo-site/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ releases:
- name: teraslice
namespace: ts-dev1
version: {{ (index (index .Entries "teraslice") 0).Version }}
chart: terascope/teraslice
chart: terascope/teraslice-chart
needs:
- ts-dev1/opensearch1
values:
Expand Down
2 changes: 1 addition & 1 deletion helm/teraslice/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
name: teraslice
name: teraslice-chart
description: Teraslice - Distributed computing platform for processing JSON data
type: application
version: 2.0.0
Expand Down

0 comments on commit de6aac9

Please sign in to comment.