Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added a new chart static-site that build and host static sites. #64

Merged
merged 13 commits into from
Mar 30, 2023
Prev Previous commit
Next Next commit
change build image from node to alpine/git
  • Loading branch information
YoucefGuichi committed Mar 28, 2023
commit ca0daa033ada1a27019289b4b94e9e42916571d6
Binary file modified charts/cron-job/charts/common-0.2.0.tgz
Binary file not shown.
Binary file modified charts/onechart/charts/common-0.2.0.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion charts/static-site/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
- |
git clone {{ .Values.gitCloneUrl}} &&
cd {{ regexFind "([^\\/]+$)" .Values.gitCloneUrl | replace ".git" "" }} &&
{{ .Values.buildScript | nindent 11}}
{{ .Values.buildScript | nindent 12}}
mkdir -p /usr/share/nginx/html &&
cp -r ./{{ .Values.builtAssets }}. /usr/share/nginx/html
{{- end }}
Expand Down
32 changes: 16 additions & 16 deletions charts/static-site/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,21 @@ service:
type: ClusterIP
port: 80

# ingress:
# enabled: false
# className: ""
# annotations: {}
# # kubernetes.io/ingress.class: nginx
# # kubernetes.io/tls-acme: "true"
# hosts:
# - host: chart-example.local
# paths:
# - path: /
# pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
ingress:
enabled: false
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths:
- path: /
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local

resources:
requests:
Expand All @@ -71,7 +71,7 @@ affinity: {}

# values to build and deploy static sites
gitCloneUrl: https://github.com/gimlet-io/hugo-site.git
buildImage: node # the image must have git installed
buildImage: alpine/git # the image must have git installed
buildTag: latest
buildScript: |
# !/usr/bin/env bash
Expand Down