-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix helm-publish-stable-specific [backport integ_2.8] (#423)
- Loading branch information
Showing
1 changed file
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|