feat(helm): add common Helm chart and templates for service development

fix(pipeline): update image names for frontend and backend in Jenkinsfile

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-02-11 12:11:41 +08:00
parent 37b574ba50
commit 203aa95f61
4 changed files with 41 additions and 2 deletions

View File

@ -0,0 +1,17 @@
.DS_Store
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
*.swp
*.bak
*.tmp
*~
.project
.idea/
*.tmproj
.vscode/
img/

View File

@ -0,0 +1,12 @@
annotations:
category: "infra"
apiVersion: v2
appVersion: 0.0.1
version: 0.0.1
description: "A Helm charts for common templates to accelerate the development of service templates."
name: common
keywords:
- common
- infra
- templates
- helper

View File

@ -0,0 +1,10 @@
{{
/* Expand the name of the chart */
}}
{{- define "common.names.name" -}}
{{- define .Chart.name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{
}}

View File

@ -63,7 +63,7 @@ executeFreeleapsPipeline {
// imageRepository used to specify the image repository
imageRepository: 'sunzhenyucn',
// imageName used to specify the image name
imageName: 'gitops-mvp-app-frontend',
imageName: 'demo-frontend',
// imageBuilder used to specify the image builder
// dind: using docker-in-docker to build the image
// kaniko: using Kaniko to build the image
@ -110,7 +110,7 @@ executeFreeleapsPipeline {
// imageRepository used to specify the image repository
imageRepository: 'sunzhenyucn',
// imageName used to specify the image name
imageName: 'gitops-mvp-app-backend',
imageName: 'demo-backend',
// imageBuilder used to specify the image builder
// dind: using docker-in-docker to build the image
// kaniko: using Kaniko to build the image