forked from jenkins-x/draft-packs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding preview chart for csharp projects - issue jenkins-x#43
- Loading branch information
1 parent
02a1137
commit 5900995
Showing
4 changed files
with
62 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: v1 | ||
description: A Helm chart for Kubernetes | ||
name: preview | ||
icon: https://raw.githubusercontent.com/jenkins-x/jenkins-x-platform/master/images/python.png | ||
version: 0.1.0-SNAPSHOT |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
OS := $(shell uname) | ||
|
||
preview: | ||
helm init --client-only | ||
helm repo add chartmuseum http://jenkins-x-chartmuseum:8080 | ||
helm repo add chartmuseum https://chartmuseum.build.cd.jenkins-x.io | ||
ifeq ($(OS),Darwin) | ||
sed -i "" -e "s/version:.*/version: $(PREVIEW_VERSION)/" Chart.yaml | ||
sed -i "" -e "s/version:.*/version: $(PREVIEW_VERSION)/" ../*/Chart.yaml | ||
sed -i "" -e "s/tag: .*/tag: $(PREVIEW_VERSION)/" values.yaml | ||
else ifeq ($(OS),Linux) | ||
sed -i -e "s/version:.*/version: $(PREVIEW_VERSION)/" Chart.yaml | ||
sed -i -e "s/version:.*/version: $(PREVIEW_VERSION)/" ../*/Chart.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: $(PREVIEW_VERSION)/" values.yaml | ||
else | ||
echo "platfrom $(OS) not supported to release from" | ||
exit -1 | ||
endif | ||
echo " version: $(PREVIEW_VERSION)" >> requirements.yaml | ||
helm dependency build | ||
helm lint |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
dependencies: | ||
- alias: expose | ||
name: exposecontroller | ||
repository: https://chartmuseum.build.cd.jenkins-x.io | ||
version: 2.3.56 | ||
- alias: cleanup | ||
name: exposecontroller | ||
repository: https://chartmuseum.build.cd.jenkins-x.io | ||
version: 2.3.56 | ||
- alias: preview | ||
name: REPLACE_ME_APP_NAME | ||
repository: file://../REPLACE_ME_APP_NAME |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
expose: | ||
Annotations: | ||
helm.sh/hook: post-install,post-upgrade | ||
helm.sh/hook-delete-policy: hook-succeeded | ||
config: | ||
exposer: Ingress | ||
http: true | ||
tlsacme: false | ||
|
||
cleanup: | ||
Args: | ||
- --cleanup | ||
Annotations: | ||
helm.sh/hook: pre-delete | ||
helm.sh/hook-delete-policy: hook-succeeded | ||
|
||
preview: | ||
image: | ||
repository: | ||
tag: | ||
pullPolicy: IfNotPresent |