From 9bc36352bfcdb8db2b96cf1bdfb17a4f59efd788 Mon Sep 17 00:00:00 2001 From: James Strachan Date: Tue, 16 Jan 2018 16:12:38 +0000 Subject: [PATCH] initial default chart --- Jenkinsfile | 15 +++++++++++++++ Makefile | 25 +++++++++++++++++++++++++ env/Chart.yaml | 6 ++++++ env/requirements.yaml | 1 + env/templates/.gitignore | 1 + env/values.yaml | 1 + 6 files changed, 49 insertions(+) create mode 100644 Jenkinsfile create mode 100644 Makefile create mode 100644 env/Chart.yaml create mode 100755 env/requirements.yaml create mode 100644 env/templates/.gitignore create mode 100644 env/values.yaml diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..b3fcc48 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,15 @@ +pipeline { + agent { + label "jenkins-maven" + } + + stages { + stage('Update Environment') { + steps { + container('maven') { + sh 'make install' + } + } + } + } +} diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..264e65e --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +CHART_REPO := http://jenkins-x-chartmuseum:8080 +NAME := "env" +NAMESPACE := "default-staging" +OS := $(shell uname) + +build: clean + rm -rf requirements.lock + helm version + helm init + helm repo add releases ${CHART_REPO} + helm dependency build env + helm lint env + +install: clean build + helm install env --name ${NAME} --namespace ${NAMESPACE} + +upgrade: clean build + helm upgrade ${NAME} . --namespace ${NAMESPACE} + +delete: + helm delete --purge ${NAME} --namespace ${NAMESPACE} + +clean: + + diff --git a/env/Chart.yaml b/env/Chart.yaml new file mode 100644 index 0000000..daaf104 --- /dev/null +++ b/env/Chart.yaml @@ -0,0 +1,6 @@ +name: env +version: 0.0.1 +description: GitOps Environment for this Environment +maintainers: + - name: Team +icon: https://www.cloudbees.com/sites/default/files/Jenkins_8.png diff --git a/env/requirements.yaml b/env/requirements.yaml new file mode 100755 index 0000000..703955e --- /dev/null +++ b/env/requirements.yaml @@ -0,0 +1 @@ +dependencies: diff --git a/env/templates/.gitignore b/env/templates/.gitignore new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/env/templates/.gitignore @@ -0,0 +1 @@ + diff --git a/env/values.yaml b/env/values.yaml new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/env/values.yaml @@ -0,0 +1 @@ +