Remove build tag in static site (#77)

* Chart schema edit

* Build tag removed
This commit is contained in:
Ádám Sisák
2023-08-11 10:58:05 +02:00
committed by GitHub
parent f0d1bd712a
commit 38e586aa7b
5 changed files with 8 additions and 22 deletions
+2 -3
View File
@@ -3,14 +3,13 @@
"schemaIDs": [
"#/properties/gitCloneUrl",
"#/properties/buildImage",
"#/properties/buildTag",
"#/properties/buildScript",
"#/properties/builtAssets"
],
"uiSchema": {
"#/properties/buildScript": {
"ui:widget": "textarea"
"ui:widget": "textarea",
"ui:rows": 10
}
},
"metaData": {
+1 -1
View File
@@ -31,7 +31,7 @@ spec:
emptyDir: {}
initContainers:
- name: init-con
image: {{ .Values.buildImage }}:{{ .Values.buildTag }}
image: {{ .Values.buildImage }}
{{- if .Values.buildScript }}
command:
- sh
@@ -5,11 +5,8 @@ tests:
- it: Should set image, tag and command
set:
gitCloneUrl: https:/github.com/mycompany/myrepo.git
buildImage: nginx
buildTag: x.y.z
buildImage: nginx:x.y.z
asserts:
- equal:
path: spec.template.spec.initContainers[0].image
value: nginx:x.y.z
+2 -11
View File
@@ -8,8 +8,7 @@
"examples": [
{
"gitCloneUrl": "https://github.com/gimlet-io/hugo-site.git",
"buildImage": "node",
"buildTag": "latest",
"buildImage": "node:latest",
"buildScript": "npm install && npm install -g gatsby-cli && gatsby build",
"builtAssets": "public/"
}
@@ -17,7 +16,6 @@
"required": [
"gitCloneUrl",
"buildImage",
"buildTag",
"buildScript",
"builtAssets"
],
@@ -34,13 +32,7 @@
"type": "string",
"title": "Build image",
"description": "The image that will be used for the build proccess",
"default":"bitnami/git"
},
"buildTag": {
"$id": "#/properties/buildTag",
"type": "string",
"title": "Image tag",
"default": "latest"
"default": "bitnami/git:latest"
},
"buildScript": {
"$id": "#/properties/buildScript",
@@ -119,7 +111,6 @@
}
}
}
},
"additionalProperties": true
}
+1 -2
View File
@@ -63,8 +63,7 @@ affinity: {}
# values to build and deploy static sites
gitCloneUrl: https://github.com/gimlet-io/hugo-site.git
buildImage: bitnami/git # the image must have git installed
buildTag: latest
buildImage: bitnami/git:latest # the image must have git installed
buildScript: |
# !/usr/bin/env bash
# pre -reqs