Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

add helm update to draft packs #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packs/appserver/charts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ release: clean
helm init --client-only
helm package .
curl --fail -u $(CHARTMUSEUM_CREDS_USR):$(CHARTMUSEUM_CREDS_PSW) --data-binary "@$(NAME)-$(shell sed -n 's/^version: //p' Chart.yaml).tgz" $(CHART_REPO)/api/charts
helm repo add jenkins-x-api https://chartmuseum.build.cd.jenkins-x.io
helm repo update
rm -rf ${NAME}*.tgz%
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd have thought a helm repo add and helm repo update would need to happen before the helm package above?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only need to add the repo to helm in order to run update as the push is done with curl, update is only being used to regenerate the index-cache.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only need to add the repo to helm in order to run update as the push is done with curl, update is only being used to regenerate the index-cache.


tag:
Expand Down
2 changes: 2 additions & 0 deletions packs/csharp/charts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ release: clean
helm init --client-only
helm package .
curl --fail -u $(CHARTMUSEUM_CREDS_USR):$(CHARTMUSEUM_CREDS_PSW) --data-binary "@$(NAME)-$(shell sed -n 's/^version: //p' Chart.yaml).tgz" $(CHART_REPO)/api/charts
helm repo add jenkins-x-api https://chartmuseum.build.cd.jenkins-x.io
helm repo update
rm -rf ${NAME}*.tgz%

tag:
Expand Down
4 changes: 3 additions & 1 deletion packs/go/charts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ release: clean
helm init --client-only
helm package .
curl --fail -u $(CHARTMUSEUM_CREDS_USR):$(CHARTMUSEUM_CREDS_PSW) --data-binary "@$(NAME)-$(shell sed -n 's/^version: //p' Chart.yaml).tgz" $(CHART_REPO)/api/charts
helm repo add jenkins-x-api https://chartmuseum.build.cd.jenkins-x.io
helm repo update
rm -rf ${NAME}*.tgz%

tag:
Expand All @@ -45,4 +47,4 @@ endif
git add --all
git commit -m "release $(VERSION)" --allow-empty # if first release then no verion update is performed
git tag -fa v$(VERSION) -m "Release version $(VERSION)"
git push origin v$(VERSION)
git push origin v$(VERSION)
2 changes: 2 additions & 0 deletions packs/gradle/charts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ release: clean
helm init --client-only
helm package .
curl --fail -u $(CHARTMUSEUM_CREDS_USR):$(CHARTMUSEUM_CREDS_PSW) --data-binary "@$(NAME)-$(shell sed -n 's/^version: //p' Chart.yaml).tgz" $(CHART_REPO)/api/charts
helm repo add jenkins-x-api https://chartmuseum.build.cd.jenkins-x.io
helm repo update
rm -rf ${NAME}*.tgz%

tag:
Expand Down
2 changes: 2 additions & 0 deletions packs/javascript/charts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ release: clean
helm init --client-only
helm package .
curl --fail -u $(CHARTMUSEUM_CREDS_USR):$(CHARTMUSEUM_CREDS_PSW) --data-binary "@$(NAME)-$(shell sed -n 's/^version: //p' Chart.yaml).tgz" $(CHART_REPO)/api/charts
helm repo add jenkins-x-api https://chartmuseum.build.cd.jenkins-x.io
helm repo update
rm -rf ${NAME}*.tgz%

tag:
Expand Down
2 changes: 2 additions & 0 deletions packs/liberty/charts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ release: clean
helm init --client-only
helm package .
curl --fail -u $(CHARTMUSEUM_CREDS_USR):$(CHARTMUSEUM_CREDS_PSW) --data-binary "@$(NAME)-$(shell sed -n 's/^version: //p' Chart.yaml).tgz" $(CHART_REPO)/api/charts
helm repo add jenkins-x-api https://chartmuseum.build.cd.jenkins-x.io
helm repo update
rm -rf ${NAME}*.tgz%

tag:
Expand Down
2 changes: 2 additions & 0 deletions packs/maven/charts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ release: clean
helm init --client-only
helm package .
curl --fail -u $(CHARTMUSEUM_CREDS_USR):$(CHARTMUSEUM_CREDS_PSW) --data-binary "@$(NAME)-$(shell sed -n 's/^version: //p' Chart.yaml).tgz" $(CHART_REPO)/api/charts
helm repo add jenkins-x-api https://chartmuseum.build.cd.jenkins-x.io
helm repo update
rm -rf ${NAME}*.tgz%

tag:
Expand Down
2 changes: 2 additions & 0 deletions packs/python/charts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ release: clean
helm init --client-only
helm package .
curl --fail -u $(CHARTMUSEUM_CREDS_USR):$(CHARTMUSEUM_CREDS_PSW) --data-binary "@$(NAME)-$(shell sed -n 's/^version: //p' Chart.yaml).tgz" $(CHART_REPO)/api/charts
helm repo add jenkins-x-api https://chartmuseum.build.cd.jenkins-x.io
helm repo update
rm -rf ${NAME}*.tgz%

tag:
Expand Down
4 changes: 3 additions & 1 deletion packs/ruby/charts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ release: clean
helm init --client-only
helm package .
curl --fail -u $(CHARTMUSEUM_CREDS_USR):$(CHARTMUSEUM_CREDS_PSW) --data-binary "@$(NAME)-$(shell sed -n 's/^version: //p' Chart.yaml).tgz" $(CHART_REPO)/api/charts
helm repo add jenkins-x-api https://chartmuseum.build.cd.jenkins-x.io
helm repo update
rm -rf ${NAME}*.tgz%

tag:
Expand All @@ -36,7 +38,7 @@ ifeq ($(OS),Darwin)
sed -i "" -e "s/tag: .*/tag: $(RELEASE_VERSION)/" values.yaml
else ifeq ($(OS),Linux)
sed -i -e "s/version:.*/version: $(RELEASE_VERSION)/" Chart.yaml
sed -i -e "s|repository: .*|repository: $(JENKINS_X_DOCKER_REGISTRY_SERVICE_HOST):$(JENKINS_X_DOCKER_REGISTRY_SERVICE_PORT)/$(ORG)/$(APP_NAME)|" values.yaml
sed -i -e "s|repository: .*|repository: $(JENKINS_X_DOCKER_REGISTRY_SERVICE_HOST):$(JENKINS_X_DOCKER_REGISTRY_SERVICE_PORT)/REPLACE_ME_ORG/REPLACE_ME_APP_NAME|" values.yaml
sed -i -e "s/tag: .*/tag: $(RELEASE_VERSION)/" values.yaml
else
echo "platfrom $(OS) not supported to release from"
Expand Down
2 changes: 2 additions & 0 deletions packs/rust/charts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ release: clean
helm init --client-only
helm package .
curl --fail -u $(CHARTMUSEUM_CREDS_USR):$(CHARTMUSEUM_CREDS_PSW) --data-binary "@$(NAME)-$(shell sed -n 's/^version: //p' Chart.yaml).tgz" $(CHART_REPO)/api/charts
helm repo add jenkins-x-api https://chartmuseum.build.cd.jenkins-x.io
helm repo update
rm -rf ${NAME}*.tgz%

tag:
Expand Down
2 changes: 2 additions & 0 deletions packs/scala/charts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ release: clean
helm init --client-only
helm package .
curl --fail -u $(CHARTMUSEUM_CREDS_USR):$(CHARTMUSEUM_CREDS_PSW) --data-binary "@$(NAME)-$(shell sed -n 's/^version: //p' Chart.yaml).tgz" $(CHART_REPO)/api/charts
helm repo add jenkins-x-api https://chartmuseum.build.cd.jenkins-x.io
helm repo update
rm -rf ${NAME}*.tgz%

tag:
Expand Down