Add multi-mode HTML, Docker, Helm chart, and deploy script
All checks were successful
Build and Deploy / build (push) Successful in 46s

- Add shop-mode.html and project-mode.html for separate calculation
modes - Refactor index.html as a landing page for mode selection - Add
Dockerfile with optimized nginx config and healthcheck - Add
.dockerignore for cleaner Docker builds - Add deploy.sh for
Helm/Kubernetes deployment automation - Add helm-chart/ with
values.yaml, Chart.yaml, templates, and documentation - Update README.md
with full instructions, features, and CI/CD examples
This commit is contained in:
d.viti
2025-10-13 23:25:33 +02:00
parent 68d1c91456
commit 23ec5d5f32
14 changed files with 4021 additions and 1553 deletions

View File

@@ -0,0 +1,53 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "calcolatore.fullname" . }}-html-content
labels:
{{- include "calcolatore.labels" . | nindent 4 }}
data:
# Note: In a real deployment, you would use a CI/CD pipeline to inject these files
# or mount them from a separate volume. This is just a simple example.
# You can also use --set-file flag with helm to inject files:
# helm install myapp ./helm-chart \
# --set-file configMaps.html-content.data.index\.html=./index.html \
# --set-file configMaps.html-content.data.project-mode\.html=./project-mode.html \
# --set-file configMaps.html-content.data.shop-mode\.html=./shop-mode.html
index.html: |
<!-- Menu/Landing page - Content will be injected during deployment -->
<!DOCTYPE html>
<html>
<head>
<title>Calcolatore Prezzi - Selezione Modalità</title>
<meta http-equiv="refresh" content="0; url=https://example.com/">
</head>
<body>
<p>Loading...</p>
</body>
</html>
project-mode.html: |
<!-- Project mode - Content will be injected during deployment -->
<!DOCTYPE html>
<html>
<head>
<title>Calcolatore Prezzi - Modalità Progetto</title>
<meta http-equiv="refresh" content="0; url=https://example.com/project-mode.html">
</head>
<body>
<p>Loading...</p>
</body>
</html>
shop-mode.html: |
<!-- Shop mode - Content will be injected during deployment -->
<!DOCTYPE html>
<html>
<head>
<title>Calcolatore Prezzi - Modalità Negozio</title>
<meta http-equiv="refresh" content="0; url=https://example.com/shop-mode.html">
</head>
<body>
<p>Loading...</p>
</body>
</html>