Compare commits
3 Commits
5d4d094886
...
cdc094c7a1
| Author | SHA1 | Date | |
|---|---|---|---|
| cdc094c7a1 | |||
| 7cae72a435 | |||
| 92a72361bb |
@@ -6,14 +6,4 @@ metadata:
|
|||||||
|
|
||||||
data:
|
data:
|
||||||
index.html: |
|
index.html: |
|
||||||
<!doctype html>
|
{{ tpl (.Files.Get "website/index.html") . | indent 4 }}
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>{{ .Values.environment }} - kub-web-test</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>{{ .Values.environment }}</h1>
|
|
||||||
<p>kub-web-test deployed with Helm, Argo CD and Kargo.</p>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
environment: DEV
|
environment: DEV
|
||||||
|
gitCommit: 7cae72a
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
host: web-dev.max.test.scrumdapp.open-ict.hu
|
host: web-dev.max.test.scrumdapp.open-ict.hu
|
||||||
|
|||||||
@@ -12,3 +12,4 @@ ingress:
|
|||||||
path: /
|
path: /
|
||||||
|
|
||||||
environment: LOCAL
|
environment: LOCAL
|
||||||
|
gitCommit: unknown
|
||||||
|
|||||||
@@ -0,0 +1,118 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<title>{{ .Values.environment }} - kub-web-test</title>
|
||||||
|
<style>
|
||||||
|
:root {
|
||||||
|
color-scheme: dark;
|
||||||
|
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||||
|
background: #111827;
|
||||||
|
color: #f8fafc;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
min-height: 100vh;
|
||||||
|
margin: 0;
|
||||||
|
display: grid;
|
||||||
|
place-items: center;
|
||||||
|
background:
|
||||||
|
radial-gradient(circle at top left, rgba(20, 184, 166, 0.28), transparent 34rem),
|
||||||
|
linear-gradient(135deg, #111827 0%, #1f2937 45%, #312e81 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
width: min(68rem, calc(100% - 2rem));
|
||||||
|
padding: clamp(2rem, 6vw, 5rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.eyebrow {
|
||||||
|
margin: 0 0 1rem;
|
||||||
|
color: #5eead4;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
font-weight: 800;
|
||||||
|
letter-spacing: 0.14em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
max-width: 12ch;
|
||||||
|
margin: 0;
|
||||||
|
font-size: clamp(3.2rem, 12vw, 8rem);
|
||||||
|
line-height: 0.9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lede {
|
||||||
|
max-width: 42rem;
|
||||||
|
margin: 1.5rem 0 0;
|
||||||
|
color: #dbeafe;
|
||||||
|
font-size: clamp(1.05rem, 2vw, 1.35rem);
|
||||||
|
line-height: 1.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pipeline {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 0.75rem;
|
||||||
|
margin-top: 2rem;
|
||||||
|
padding: 0;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pipeline li {
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.18);
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
padding: 0.7rem 0.9rem;
|
||||||
|
background: rgba(15, 23, 42, 0.5);
|
||||||
|
color: #f8fafc;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.environment {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
min-height: 2.25rem;
|
||||||
|
margin-top: 2.5rem;
|
||||||
|
border-radius: 999px;
|
||||||
|
padding: 0 1rem;
|
||||||
|
background: #f8fafc;
|
||||||
|
color: #111827;
|
||||||
|
font-weight: 900;
|
||||||
|
}
|
||||||
|
|
||||||
|
.revision {
|
||||||
|
margin: 0.75rem 0 0;
|
||||||
|
color: #bfdbfe;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
color: #f8fafc;
|
||||||
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<main>
|
||||||
|
<p class="eyebrow">Kubernetes GitOps demo</p>
|
||||||
|
<h1>kub-web-test</h1>
|
||||||
|
<p class="lede">
|
||||||
|
This static site is served by nginx from a Helm chart, deployed by Argo CD,
|
||||||
|
and promoted through Kargo from dev to staging to production.
|
||||||
|
</p>
|
||||||
|
<ul class="pipeline" aria-label="Promotion flow">
|
||||||
|
<li>dev branch</li>
|
||||||
|
<li>DEV site</li>
|
||||||
|
<li>STAGING approval</li>
|
||||||
|
<li>PROD release</li>
|
||||||
|
</ul>
|
||||||
|
<div class="environment">Current environment: {{ .Values.environment }}</div>
|
||||||
|
<p class="revision">Git commit: <code>{{ .Values.gitCommit }}</code></p>
|
||||||
|
</main>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user