Skip to content

Commit

Permalink
Fix helm-publish-stable-specific [backport integ_2.8] (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hedingber authored Apr 22, 2020
1 parent 6d2c43b commit 24fb0c7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ incubator-specific: repo-helm update-req-specific package-specific index

.PHONY: cleanup-tmp-workspace
cleanup-tmp-workspace:
@rm -rf /tmp/v3io-helm-charts
@rm -rf /tmp/v3io-helm-charts*
@echo "Cleaned up /tmp/v3io-helm-charts"

.PHONY: helm-publish
Expand Down Expand Up @@ -120,14 +120,16 @@ helm-publish-stable-specific: cleanup-tmp-workspace
helm-publish-stable-specific:
@echo "Preparing to release a new stable index for $(CHART_NAME) from $(GITHUB_BRANCH)"
@git clone [email protected]:v3io/helm-charts /tmp/v3io-helm-charts
@cd /tmp/v3io-helm-charts && \
@cp -r /tmp/v3io-helm-charts /tmp/v3io-helm-charts-2
@cd /tmp/v3io-helm-charts-2 && \
git checkout $(GITHUB_BRANCH) && \
git checkout gh-pages && \
git merge $(GITHUB_BRANCH) --message "Merging $(GITHUB_BRANCH) into gh-pages" && \
REF_SHA=$$(git log $(GITHUB_BRANCH) -1 | head -1) && \
make stable-specific && \
cd /tmp/v3io-helm-charts && \
git checkout gh-pages && \
mv /tmp/v3io-helm-charts-2/stable/$(CHART_NAME)-*tgz /tmp/v3io-helm-charts/stable/ && \
make index && \
git add --force stable/$(CHART_NAME)-*tgz && \
git add stable/$(CHART_NAME) && \
git add stable/index.yaml && \
git commit --message "Merging $$CHART_NAME from $$REF_SHA" && \
git push
Expand Down

0 comments on commit 24fb0c7

Please sign in to comment.